create shared group for all server services to manage all files

This commit is contained in:
Noah Masur 2024-12-05 21:58:18 +00:00
parent 9b948f45ee
commit 00f23f4b9c
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,7 @@
./auto-upgrade.nix
./doas.nix
./journald.nix
./shared.nix
./user.nix
./timezone.nix
];

View File

@ -0,0 +1,14 @@
{ config, lib, ... }:
{
config = lib.mkIf config.server {
# Create a shared group for many services
users.groups.shared = { };
# Give the human user access to the shared group
users.users.${config.user}.extraGroups = [ config.users.groups.shared.name ];
};
}