nixos/flake.nix

40 lines
1.3 KiB
Nix
Raw Permalink 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 23:20:58 +02:00
thekenlicht-daemon = {
url = "git+https://git.pfzetto.de/ffmh/thekenlicht";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-28 11:39:24 +02:00
};
2024-08-28 23:20:58 +02:00
outputs = { self, nixpkgs, home-manager, impermanence, thekenlicht-daemon }@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
2024-08-28 23:20:58 +02:00
thekenlicht-daemon.nixosModules.thekenlicht-daemon
2024-08-28 11:39:24 +02:00
{
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 ];
};
}
];
};
};
}