Compare commits

...

5 Commits

Author SHA1 Message Date
oysteikt 0e2a8ed3ed base/polkit: let wheel users use AUTH_KEEP_SELF for systemd actions
Build topology graph / evals (push) Successful in 3m48s
Eval nix flake / evals (push) Successful in 5m2s
2026-05-27 14:13:36 +09:00
oysteikt 3372712e26 modules/ooye: move StartLimit* options to correct section
Build topology graph / evals (push) Successful in 2m25s
Eval nix flake / evals (push) Successful in 4m51s
2026-05-26 15:03:27 +09:00
oysteikt 7e586e082e flake.lock: bump pvv-calendar-bot
Build topology graph / evals (push) Successful in 2m23s
Eval nix flake / evals (push) Successful in 4m44s
2026-05-26 14:55:58 +09:00
oysteikt 47a744f68f ildkule/uptime-kuma: set up rsync pull target for principal
Build topology graph / evals (push) Successful in 4m0s
Eval nix flake / evals (push) Successful in 4m14s
2026-05-26 13:37:29 +09:00
vegardbm da505d4fe2 kommode: sign merge commits and sign crud actions
Build topology graph / evals (push) Successful in 2m41s
Eval nix flake / evals (pull_request) Successful in 4m2s
Eval nix flake / evals (push) Successful in 4m5s
2026-05-25 20:21:23 +02:00
5 changed files with 35 additions and 12 deletions
+8 -5
View File
@@ -6,10 +6,13 @@ in
security.polkit.enable = true; security.polkit.enable = true;
environment.etc."polkit-1/rules.d/9-nixos-overrides.rules".text = lib.mkIf cfg.enable '' environment.etc."polkit-1/rules.d/9-nixos-overrides.rules".text = lib.mkIf cfg.enable ''
polkit.addAdminRule(function(action, subject) { polkit.addRule(function(action, subject) {
if(subject.isInGroup("wheel")) { if (
return ["unix-user:"+subject.user]; action.id.startsWith("org.freedesktop.systemd1.") &&
} subject.isInGroup("wheel")
}); ) {
return polkit.Result.AUTH_SELF_KEEP;
}
});
''; '';
} }
Generated
+4 -4
View File
@@ -316,11 +316,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1764869785, "lastModified": 1779774845,
"narHash": "sha256-FGTIpC7gB4lbeL0bfYzn1Ge0PaCpd7VqWBLhJBx0i4A=", "narHash": "sha256-QJU1J4eupwjRrtvWGzRut0GY3woql92RS9O/acWkJkk=",
"ref": "main", "ref": "main",
"rev": "8ce7fb0b1918bdb3d1489a40d73895693955e8b2", "rev": "13667cd216db260ab549e6f1b6281aa230d2f9e0",
"revCount": 23, "revCount": 29,
"type": "git", "type": "git",
"url": "https://git.pvv.ntnu.no/Projects/calendar-bot.git" "url": "https://git.pvv.ntnu.no/Projects/calendar-bot.git"
}, },
@@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, values, ... }:
let let
cfg = config.services.uptime-kuma; cfg = config.services.uptime-kuma;
domain = "status.pvv.ntnu.no"; domain = "status.pvv.ntnu.no";
@@ -24,4 +24,21 @@ in {
fsType = "bind"; fsType = "bind";
options = [ "bind" ]; options = [ "bind" ];
}; };
services.rsync-pull-targets = {
enable = true;
locations.${stateDir} = {
user = "root";
rrsyncArgs.ro = true;
authorizedKeysAttrs = [
"restrict"
"from=\"principal.pvv.ntnu.no,${values.hosts.principal.ipv6},${values.hosts.principal.ipv4}\""
"no-agent-forwarding"
"no-port-forwarding"
"no-pty"
"no-X11-forwarding"
];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXzcDm6cVr4NmWzUSroy33FlielKqaG83wY0RCMC0p/ uptime_kuma rsync backup";
};
};
} }
+2
View File
@@ -50,6 +50,8 @@ in
SIGNING_NAME = "PVV Git"; SIGNING_NAME = "PVV Git";
SIGNING_EMAIL = "gitea@git.pvv.ntnu.no"; SIGNING_EMAIL = "gitea@git.pvv.ntnu.no";
INITIAL_COMMIT = "always"; INITIAL_COMMIT = "always";
MERGES = lib.concatStringsSep "," [ "always" ];
CRUD_ACTIONS = lib.concatStringsSep "," [ "always" ];
WIKI = "always"; WIKI = "always";
}; };
} }
+3 -2
View File
@@ -171,6 +171,9 @@ in
requires = [ "matrix-ooye-pre-start.service" ]; requires = [ "matrix-ooye-pre-start.service" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
startLimitIntervalSec = 5;
startLimitBurst = 5;
serviceConfig = { serviceConfig = {
ExecStart = lib.getExe config.services.matrix-ooye.package; ExecStart = lib.getExe config.services.matrix-ooye.package;
WorkingDirectory = "/var/lib/matrix-ooye"; WorkingDirectory = "/var/lib/matrix-ooye";
@@ -182,8 +185,6 @@ in
#PrivateDevices = true; #PrivateDevices = true;
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "5s"; RestartSec = "5s";
StartLimitIntervalSec = "5s";
StartLimitBurst = "5";
DynamicUser = true; DynamicUser = true;
}; };
}; };