nixos/flake.nix
2024-08-28 14:24:44 +02:00

34 lines
1.1 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";
};
outputs = { self, nixpkgs, home-manager, impermanence }@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
{
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 ];
};
}
];
};
};
}