nixos/flake.nix

39 lines
1.3 KiB
Nix

{
nixConfig.experimental-features = [ "nix-command" "flakes" ];
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
thekenlicht-daemon = {
url = "git+https://git.pfzetto.de/ffmh/thekenlicht";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, impermanence, thekenlicht-daemon }@inputs: {
nixosConfigurations."stube-pc" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./stube-pc/system.nix
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
thekenlicht-daemon.nixosModules.thekenlicht-daemon
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = inputs;
sharedModules = [ impermanence.nixosModules.home-manager.impermanence ];
users.stube.imports = [ ./stube-pc/home-manager.nix ];
};
}
];
};
};
}