1
0
Fork 0
nix-configuration/modules/users/media/default.nix

31 lines
523 B
Nix

{ lib, config, ... }:
# Define user for managing media files
let
cfg = config.aux.system.users.media;
in
{
options = {
aux.system.users.media = {
enable = lib.mkEnableOption "Enables media user account";
};
};
config = lib.mkIf cfg.enable {
users = {
users.media = {
isNormalUser = false;
isSystemUser = true;
description = "Media manager";
uid = 1001;
group = "media";
};
groups."media" = {
gid = 1001;
};
};
};
}