From ae5186a2550a155c3cc7acaaa344a179353b86be Mon Sep 17 00:00:00 2001 From: David Crompton Date: Fri, 28 Jul 2023 11:44:18 -0400 Subject: [PATCH] Enable Flakes --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 5be8e89..7d9c0f1 100644 --- a/flake.nix +++ b/flake.nix @@ -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