mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-27 09:54:53 +00:00
15 lines
284 B
Nix
15 lines
284 B
Nix
{ 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 ];
|
|
|
|
};
|
|
|
|
}
|