Skip to content

Commit

Permalink
nixos/alsa: fix wrong use of mkIf
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidb committed Feb 22, 2018
1 parent 3af0ff2 commit 473cfed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nixos/modules/services/audio/alsa.nix
Expand Up @@ -77,9 +77,11 @@ in

###### implementation

config = {
config = mkMerge [
({
sound.enable = mkDefault (!versionAtLeast config.system.stateVersion "18.03");
} // mkIf config.sound.enable {
})
(mkIf config.sound.enable {

environment.systemPackages = [ alsaUtils ];

Expand Down Expand Up @@ -125,6 +127,6 @@ in
];
};

};
})];

}

0 comments on commit 473cfed

Please sign in to comment.