From a1c31296311943358173122ad9194f7d41adae38 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 25 Jun 2024 16:25:12 -0400 Subject: [PATCH] base/nix: add nh nix helper and set $FLAKE env variable --- nixosModules/base/nix/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixosModules/base/nix/default.nix b/nixosModules/base/nix/default.nix index 32d52a24..6aa0b387 100644 --- a/nixosModules/base/nix/default.nix +++ b/nixosModules/base/nix/default.nix @@ -6,6 +6,12 @@ ... }: { config = lib.mkIf config.alyraffauf.base.enable { + environment.variables = { + FLAKE = "github:alyraffauf/nixcfg"; + }; + + programs.nh.enable = true; + nix = { gc = { automatic = true;