{ ... }: { config.dendritic.features.nh = { homeModules = [ ( { config, ... }: let NH_NO_CHECKS = "1"; configFor = flakePath: { enable = true; clean = { enable = true; extraArgs = "--keep 3 --keep-since 8d"; }; flake = flakePath; }; in { home.sessionVariables = { inherit NH_NO_CHECKS; }; programs.nh = configFor "${config.home.homeDirectory}/nix-config"; } ) ]; nixosModules = [ ( { config, ... }: let NH_NO_CHECKS = "1"; user = config.dendritic.current.primaryUser; configFor = flakePath: { enable = true; clean = { enable = true; extraArgs = "--keep 3 --keep-since 8d"; }; flake = flakePath; }; in { environment.variables = { inherit NH_NO_CHECKS; }; programs.nh = configFor "/home/${user}/nix-config"; } ) ]; }; }