flocon/modules/programs/nh.nix
Anthony Rodriguez 4dcf7a0890
modules: move nh from core/nix to programs
This is a user program, it cannot be in core.
2025-02-13 16:42:58 +01:00

21 lines
462 B
Nix

{
lib,
config,
...
}: let
inherit (lib.modules) mkIf;
inherit (config.local.profiles) desktop;
inherit (config.local.systemVars) username;
in {
config = mkIf desktop.enable {
programs.nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep-since 30d --keep 3";
};
};
hjem.users.${username}.environment.sessionVariables.FLAKE = "${config.hjem.users.${username}.directory}/.dotfiles";
};
}