2025-02-06 15:22:47 +01:00
|
|
|
{
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2025-02-18 13:19:22 +01:00
|
|
|
hjem.users.${username}.environment.sessionVariables.FLAKE = "/home/${username}/.dotfiles";
|
2025-02-06 15:22:47 +01:00
|
|
|
};
|
|
|
|
}
|