Replace absolute path /home

In 24.11 this is no longer allowed but is easy to grab from config
This commit is contained in:
Gene Liverman 2024-12-02 00:17:25 -05:00
parent deae6df6f6
commit bae990279c
8 changed files with 25 additions and 25 deletions

View file

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