feat: remove agenix and use git-crypt instead
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pyenv = pkgs.python3.withPackages (
|
||||
ps: with ps; [
|
||||
nc-dnsapi
|
||||
python-dotenv
|
||||
]
|
||||
);
|
||||
in
|
||||
{
|
||||
users.groups.dyndns = { };
|
||||
users.users.dyndns = {
|
||||
isSystemUser = true;
|
||||
group = "dyndns";
|
||||
description = "DynDNS service user";
|
||||
};
|
||||
|
||||
systemd.timers."dyndns" = {
|
||||
requires = [ "network-online.target" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "5m";
|
||||
OnUnitActiveSec = "5m";
|
||||
Unit = "dyndns.service";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."dyndns" = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "dyndns";
|
||||
ExecStart = "${pyenv.interpreter} ${./dyndns.py} ${./nc.env.secret}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user