37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
|
{
|
||
|
nixConfig.experimental-features = [ "nix-command" "flakes" ];
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||
|
nur.url = "github:nix-community/NUR";
|
||
|
home-manager = {
|
||
|
url = "github:nix-community/home-manager/release-24.05";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
impermanence.url = "github:nix-community/impermanence";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, nur, 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
|
||
|
{
|
||
|
nixpkgs.overlays = [ nur.overlay ];
|
||
|
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 ];
|
||
|
};
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|