Merge pull request #433 from nix-community/switch-ng

common: fix accidentially disabling switch on old nixos versions
This commit is contained in:
Jörg Thalheim 2024-05-30 10:34:22 +02:00 committed by GitHub
commit 414d1039a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,10 +16,9 @@
./zfs.nix
];
system.switch = {
enable = lib.mkDefault false;
} // lib.optionalAttrs (options.system.switch ? enableNg) {
system.switch = lib.optionalAttrs (options.system.switch ? enableNg) {
# can be dropped after 24.05
enable = lib.mkDefault false;
enableNg = lib.mkDefault true;
};