pinwheel: Add naviterm config secret, fix syncthing dir ownership
This commit is contained in:
1 parent
1ce4d10e4b
commit
dbd9425843
2 files changed
+20
No files matched your search
@@ -54,4 +54,17 @@ in
|
||||
ExecStart = "${pkgs.playerctl}/bin/playerctld";
|
||||
};
|
||||
};
|
||||
|
||||
# Ensure the parent dir of the secret's path is owned by alex; otherwise
|
||||
# agenix creates it as root.
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/alex/.config/naviterm 0755 alex users -"
|
||||
];
|
||||
|
||||
age.secrets."naviterm-config" = {
|
||||
file = ../../../../secrets/pinwheel/naviterm-config.age;
|
||||
path = "/home/alex/.config/naviterm/config.ini";
|
||||
owner = "alex";
|
||||
group = "users";
|
||||
};
|
||||
}
|
||||
@@ -69,6 +69,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Ensure dataDir is owned by the syncthing user; otherwise the module creates it
|
||||
# as root when making configDir (dataDir/.config/syncthing) on a fresh machine.
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/alex/sync 0755 alex users -"
|
||||
"d /home/alex/sync/.config 0755 alex users -"
|
||||
];
|
||||
|
||||
age = {
|
||||
secrets = {
|
||||
"syncthing-cert".file = ../../../../secrets/pinwheel/syncthing-cert.age;
|
||||
|
||||
Reference in new issue
Block a user