dots/modules/hosts/nixos/hetznix02/post-install/default.nix
Gene Liverman bae990279c Replace absolute path /home
In 24.11 this is no longer allowed but is easy to grab from config
2024-12-02 21:43:50 -05:00

20 lines
569 B
Nix

{ config, username, ... }: {
sops = {
age.keyFile = "${config.users.users.${username}.home}/.config/sops/age/keys.txt";
defaultSopsFile = ../secrets.yaml;
secrets = {
local_git_config = {
owner = "${username}";
path = "${config.users.users.${username}.home}/.gitconfig-local";
};
local_private_env = {
owner = "${username}";
path = "${config.users.users.${username}.home}/.private-env";
};
tailscale_key = {
restartUnits = [ "tailscaled-autoconnect.service" ];
};
};
};
}