From 3328ba2d3f645b21d543f256e3e68c962254b83f Mon Sep 17 00:00:00 2001 From: ooks-io Date: Fri, 14 Jun 2024 20:55:41 +1200 Subject: [PATCH] feat(nixos:nh): add conditional to FLAKE variable --- nixos/modules/base/nix/nh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/base/nix/nh.nix b/nixos/modules/base/nix/nh.nix index aafdfdb..e695078 100644 --- a/nixos/modules/base/nix/nh.nix +++ b/nixos/modules/base/nix/nh.nix @@ -3,12 +3,12 @@ let inherit (lib) mkIf; host = config.ooknet.host; + admin = host.admin; in { config = mkIf (host.type != "phone") { - # TODO: i dont't want to hardcode this. - environment.variables.FLAKE = "/home/ooks/.config/ooknet/"; + environment.variables.FLAKE = mkIf admin.homeManager "/home/${admin.name}/.config/ooknet/"; programs.nh = { enable = true;