refactor
parent
cf27fdedde
commit
1a57e8a424
|
|
@ -5,6 +5,9 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
username = "h";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../modules/dconf.nix # TODO: Only enable when on Gnome?
|
||||
|
|
@ -16,8 +19,8 @@
|
|||
];
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
home.username = "h";
|
||||
home.homeDirectory = "/home/h";
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/${username}";
|
||||
|
||||
xdg.userDirs.createDirectories = false;
|
||||
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
username = "hektor";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
|
|
@ -12,13 +15,13 @@
|
|||
];
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
home.username = "hektor";
|
||||
home.homeDirectory = "/home/hektor";
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/${username}";
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = "${builtins.toString inputs.nix-secrets}/secrets.yaml";
|
||||
defaultSopsFormat = "yaml";
|
||||
age.keyFile = "/home/${config.home.username}/.config/sops/age/keys.txt";
|
||||
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||
|
||||
secrets."test" = { };
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue