2023-11-16 23:06:28 +01:00
|
|
|
{ lib, config, ... }: {
|
2023-11-04 02:28:27 +01:00
|
|
|
|
2024-12-23 18:43:58 +01:00
|
|
|
#environment.sessionVariables.SOPS_AGE_KEY_FILE = keyFilePath;
|
2023-11-04 02:28:27 +01:00
|
|
|
systemd.user.startServices = "sd-switch";
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
home = {
|
2024-04-14 07:57:07 +02:00
|
|
|
username = "${config.usercfg.username}";
|
|
|
|
homeDirectory = "/home/${config.usercfg.username}";
|
2023-11-04 02:28:27 +01:00
|
|
|
|
2024-11-21 01:21:48 +01:00
|
|
|
stateVersion = "24.11";
|
2023-11-04 02:28:27 +01:00
|
|
|
};
|
2024-12-23 18:43:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
#SOPS
|
|
|
|
sops.defaultSopsFile = ./sops/${config.usercfg.username}.yaml;
|
|
|
|
sops.age.keyFile = "/var/lib/sops-nix/age-key.txt";
|
|
|
|
sops.age.generateKey = true;
|
|
|
|
sops.secrets."github_user_key" = { };
|
|
|
|
sops.secrets."curse_forge_key" = { };
|
2023-11-04 02:28:27 +01:00
|
|
|
}
|