mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Allow root user to run backups again
This commit is contained in:
parent
da7307f259
commit
e0799f2b11
1 changed files with 0 additions and 7 deletions
|
|
@ -31,13 +31,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (resticBackups != { }) {
|
config = lib.mkIf (resticBackups != { }) {
|
||||||
assertions = [
|
|
||||||
{
|
|
||||||
assertion = lib.any (user: user != config.users.users.root.name) backupUsers;
|
|
||||||
message = "restic shouldn't be run as root";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
users.groups.backup.members = backupUsers;
|
users.groups.backup.members = backupUsers;
|
||||||
|
|
||||||
sops.secrets =
|
sops.secrets =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue