mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
20 lines
379 B
Nix
20 lines
379 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
name = "networkaudiod";
|
||
|
cfg = config.services.networkaudiod;
|
||
|
in {
|
||
|
options = {
|
||
|
services.networkaudiod = {
|
||
|
enable = mkEnableOption "Networkaudiod (NAA)";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
systemd.packages = [ pkgs.networkaudiod ];
|
||
|
systemd.services.networkaudiod.wantedBy = [ "multi-user.target" ];
|
||
|
};
|
||
|
}
|