From f875fb90c5fa7b7032deb718dfc3befae589461d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 12 May 2023 15:13:27 +0200 Subject: [PATCH 1/2] fix(nix): nix command not set --- modules/programs/nix.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/programs/nix.nix b/modules/programs/nix.nix index 413936f..adca789 100644 --- a/modules/programs/nix.nix +++ b/modules/programs/nix.nix @@ -22,6 +22,8 @@ in }; config.nix = { + extraOptions = "experimental-features = nix-command flakes"; + gc = { automatic = cfg.gc.enable; options = "--max-freed ${cfg.gc.minimumFreedGB} --delete-older-than 14d"; From e3b7c63f20cb4cc8315886d4707d0944858cecaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 12 May 2023 15:14:08 +0200 Subject: [PATCH 2/2] feat(nix): add registry entry to self --- flake.nix | 2 +- modules/programs/nix.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 19c9653..365a476 100644 --- a/flake.nix +++ b/flake.nix @@ -142,7 +142,7 @@ lib.nixosSystem { inherit pkgs system lib; specialArgs = { - inherit inputs; + inherit inputs self; }; modules = defaultModules ++ [ path ]; }) diff --git a/modules/programs/nix.nix b/modules/programs/nix.nix index adca789..dbbf277 100644 --- a/modules/programs/nix.nix +++ b/modules/programs/nix.nix @@ -1,6 +1,7 @@ { config , lib , inputs +, self , ... }: @@ -44,6 +45,7 @@ in master.flake = inputs.master; nixpkgs.flake = inputs.nixpkgs; stable.flake = inputs.stable; + dotfiles.flake = self; }; settings = {