nixos/flake.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2024-08-28 11:39:24 +02:00
{
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";
};
2024-08-28 14:24:44 +02:00
outputs = { self, nixpkgs, home-manager, impermanence }@inputs: {
2024-08-28 11:39:24 +02:00
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 ];
};
}
];
};
};
}