22 lines
383 B
Nix
22 lines
383 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
name = "networkaudiod";
|
|
cfg = config.services.networkaudiod;
|
|
in
|
|
{
|
|
options = {
|
|
services.networkaudiod = {
|
|
enable = lib.mkEnableOption "Networkaudiod (NAA)";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ pkgs.networkaudiod ];
|
|
systemd.services.networkaudiod.wantedBy = [ "multi-user.target" ];
|
|
};
|
|
}
|