mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
17 lines
356 B
Nix
17 lines
356 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkDefault mkIf;
|
|
cfg = config.services.mediatomb;
|
|
in {
|
|
config.services.mediatomb = {
|
|
enable = mkDefault true;
|
|
port = mkDefault 4152;
|
|
uuid = mkDefault "082fd344-bf69-5b72-a68f-a5a4d88e76b2";
|
|
};
|
|
config.users.users = mkIf cfg.enable {
|
|
${cfg.user}.extraGroups = ["kyuuto"];
|
|
};
|
|
}
|