nixos/services.networkaudiod: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-30 00:46:37 +02:00
parent b477479cb7
commit bde5fcc9b8

View File

@ -1,18 +1,15 @@
{ config, lib, pkgs, ... }:
with lib;
let
name = "networkaudiod";
cfg = config.services.networkaudiod;
in {
options = {
services.networkaudiod = {
enable = mkEnableOption "Networkaudiod (NAA)";
enable = lib.mkEnableOption "Networkaudiod (NAA)";
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
systemd.packages = [ pkgs.networkaudiod ];
systemd.services.networkaudiod.wantedBy = [ "multi-user.target" ];
};