Compare commits

...

4 Commits

Author SHA1 Message Date
Simon Bruder 5584dd3a91
vueko/mail: Add alias 2022-12-15 16:05:25 +01:00
Simon Bruder 54c5cfb240
restic/system: Enable compression
Fixes #66.
2022-12-13 09:59:31 +01:00
Simon Bruder 73c6fe8195
vueko/mail: Add alias 2022-12-12 22:46:37 +01:00
Simon Bruder 3cfb7b1d32
gui: Fix polkit syntax error
Somehow the ECMAscript compatibility was downgraded.
2022-12-11 16:22:23 +01:00
4 changed files with 4 additions and 1 deletions

View File

@ -62,6 +62,7 @@
enable = true; enable = true;
startAt = [ ]; # triggered by restic system backup startAt = [ ]; # triggered by restic system backup
location = "/var/lib/postgresql-backup"; location = "/var/lib/postgresql-backup";
compression = "none";
}; };
systemd.services.restic-backups-system = { systemd.services.restic-backups-system = {
after = [ "postgresqlBackup.service" ]; after = [ "postgresqlBackup.service" ];

View File

@ -37,7 +37,7 @@ lib.mkIf config.sbruder.gui.enable {
security.polkit.extraConfig = lib.optionalString config.sbruder.full '' security.polkit.extraConfig = lib.optionalString config.sbruder.full ''
// Potential security problem, but required because there is no graphical polkit authentication agent // Potential security problem, but required because there is no graphical polkit authentication agent
polkit.addRule((action, subject) => { polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "${config.services.input-remapper.package}/bin/input-remapper-control" && subject.isInGroup("users")) { if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "${config.services.input-remapper.package}/bin/input-remapper-control" && subject.isInGroup("users")) {
return polkit.Result.YES; return polkit.Result.YES;
} }

View File

@ -87,6 +87,7 @@ in
"/var" "/var"
] ++ cfg.extraPaths; ] ++ cfg.extraPaths;
extraBackupArgs = [ extraBackupArgs = [
"--compression auto"
"--exclude-caches" "--exclude-caches"
"--exclude-file=${excludesFile}" "--exclude-file=${excludesFile}"
"--tag system" "--tag system"
@ -113,6 +114,7 @@ in
"sftp.command='ssh -i ${config.sops.secrets.restic-ssh-key.path} -p ${toString sftpPort} ${sftpTarget} -s sftp'" "sftp.command='ssh -i ${config.sops.secrets.restic-ssh-key.path} -p ${toString sftpPort} ${sftpTarget} -s sftp'"
]; ];
pruneOpts = [ pruneOpts = [
"--compression auto"
"--keep-daily 7" "--keep-daily 7"
"--keep-monthly 12" "--keep-monthly 12"
"--keep-weekly 5" "--keep-weekly 5"