Enable Flakes

master
David Crompton 2023-07-28 11:44:18 -04:00
parent c9d7d44805
commit ae5186a255
1 changed files with 2 additions and 0 deletions

View File

@ -35,11 +35,13 @@
};
};
applyOverlays = overlays: ({...}:{ nixpkgs.overlays = overlays; });
flakes = {...}: {nix.settings.experimental-features = [ "nix-command" "flakes" ];};
in {
nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = attrs;
modules = [
flakes
(applyOverlays [ unfree-overlay unstable-overlay ])
./machines/kcnhub/configuration.nix
sops-nix.nixosModules.sops