diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-18 16:12:36 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-18 16:21:26 +0200 |
commit | ec4f38c56f0a7dfc9b2f9db111250f925e009c7d (patch) | |
tree | 5f630b316479985d695395f606624feb7d2be011 /nixos/modules/config/pulseaudio.nix | |
parent | 72c2898e74fd868c5cb4f3cbada8ba5701e3a6ae (diff) | |
download | nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.tar nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.tar.gz nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.tar.bz2 nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.tar.lz nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.tar.xz nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.tar.zst nixlib-ec4f38c56f0a7dfc9b2f9db111250f925e009c7d.zip |
Manual: Remove some option defaults that refer to store paths
Option defaults should not refer to store paths, because they cause the manual to be rebuilt gratuitously. It's especially bad to refer to a highly variable path like a computed configuration file.
Diffstat (limited to 'nixos/modules/config/pulseaudio.nix')
-rw-r--r-- | nixos/modules/config/pulseaudio.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/config/pulseaudio.nix b/nixos/modules/config/pulseaudio.nix index fb5715022b78..297b3a82d6c1 100644 --- a/nixos/modules/config/pulseaudio.nix +++ b/nixos/modules/config/pulseaudio.nix @@ -71,8 +71,7 @@ in { }; configFile = mkOption { - type = types.uniq types.path; - default = "${cfg.package}/etc/pulse/default.pa"; + type = types.path; description = '' The path to the configuration the PulseAudio server should use. By default, the "default.pa" configuration @@ -112,6 +111,8 @@ in { target = "pulse/client.conf"; source = clientConf; }; + + hardware.pulseaudio.configFile = mkDefault "${cfg.package}/etc/pulse/default.pa"; } (mkIf cfg.enable { |