nixos-config/flake.nix

33 lines
824 B
Nix
Raw Normal View History

2024-03-08 22:46:38 +01:00
{
description = "NixOS configuration flake";
inputs = {
2024-06-10 19:38:56 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
2024-03-09 22:37:11 +01:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-03-08 22:46:38 +01:00
};
2024-03-09 22:37:11 +01:00
outputs = { self, nixpkgs, home-manager, ...}:
2024-03-08 22:46:38 +01:00
let
2024-03-09 22:37:11 +01:00
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2024-03-08 22:46:38 +01:00
in {
nixosConfigurations = {
2024-03-09 22:37:11 +01:00
lift = nixpkgs.lib.nixosSystem {
2024-07-07 21:56:12 +02:00
inherit system;
2024-03-09 22:37:11 +01:00
modules = [
./configuration.nix
./sway.nix
./hardware-configuration.nix
];
};
};
homeConfigurations = {
rothe = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home/rothe.nix ];
2024-03-08 22:46:38 +01:00
};
};
};
}