2024-08-02 17:55:48 -04:00
|
|
|
{ lib, config, ... }:
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-07-11 12:50:48 -04:00
|
|
|
# Define user for managing media files
|
2024-02-29 09:53:34 -05:00
|
|
|
let
|
2024-06-24 11:38:28 -04:00
|
|
|
cfg = config.aux.system.users.media;
|
2024-02-29 09:53:34 -05:00
|
|
|
in
|
|
|
|
{
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
2024-06-24 11:38:28 -04:00
|
|
|
aux.system.users.media = {
|
2024-08-02 17:55:48 -04:00
|
|
|
enable = lib.mkEnableOption "Enables media user account";
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-08-02 17:55:48 -04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-09-08 11:58:56 -04:00
|
|
|
users = {
|
|
|
|
users.media = {
|
|
|
|
isNormalUser = false;
|
|
|
|
isSystemUser = true;
|
|
|
|
description = "Media manager";
|
|
|
|
uid = 1001;
|
|
|
|
group = "media";
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-09-08 11:58:56 -04:00
|
|
|
groups."media" = {
|
|
|
|
gid = 1001;
|
|
|
|
};
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|