Change secret owner
This commit is contained in:
@@ -21,8 +21,12 @@
|
||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
|
||||
secrets."mc-arcadia/repo_password" = {};
|
||||
secrets."tandoor/secret_key" = {};
|
||||
secrets."tandoor/db_password" = {};
|
||||
secrets."tandoor/secret_key" = {
|
||||
owner = "tandoor";
|
||||
};
|
||||
secrets."tandoor/db_password" = {
|
||||
owner = "tandoor";
|
||||
};
|
||||
secrets."porkbun.keytab" = {
|
||||
format = "binary";
|
||||
sopsFile = ../../secrets/diphda/porkbun.keytab;
|
||||
@@ -77,6 +81,27 @@
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."qbit-update-port" = {
|
||||
enable = true;
|
||||
path = [ pkgs.bash pkgs.docker pkgs.curl pkgs.netcat ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
Group = "root";
|
||||
ExecStart = ''
|
||||
/home/eesim/configs/qbittorrent/update-port.sh
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers."qbit-update-port" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "*:0/5";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "eesimmons9105@gmail.com";
|
||||
@@ -122,6 +147,18 @@
|
||||
];
|
||||
};
|
||||
|
||||
users.users.tandoor = {
|
||||
uid = 701;
|
||||
group = "services";
|
||||
extraGroups = [ "keys" ];
|
||||
};
|
||||
|
||||
users.groups = {
|
||||
services = {
|
||||
gid = 1001;
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user