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

35 lines
509 B
Nix
Raw Normal View History

{
pkgs,
lib,
config,
...
}:
2024-02-29 09:53:34 -05:00
# Define user for managing media on Haven
let
cfg = config.host.users.media;
2024-02-29 09:53:34 -05:00
in
with lib;
{
options = {
host.users.media = {
enable = mkEnableOption (mdDoc "Enables media user account");
};
};
2024-02-29 09:53:34 -05:00
config = mkIf cfg.enable {
users.groups."media" = {
gid = 1001;
};
2024-02-29 09:53:34 -05:00
users.users.media = {
isNormalUser = false;
isSystemUser = true;
description = "Media manager";
uid = 1001;
group = "media";
};
};
}