Nix module: make package nullable part 2

This commit is contained in:
Mihai Fufezan 2022-07-30 18:14:46 +03:00
parent 3c544e1c31
commit 132b5ba5b6
No known key found for this signature in database
GPG Key ID: 5899325F2F120900
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ in {
};
config = mkIf cfg.enable {
environment.systemPackages = [cfg.package];
environment.systemPackages = lib.optional (cfg.package != null) cfg.package;
security.polkit.enable = true;
hardware.opengl.enable = mkDefault true;
fonts.enableDefaultFonts = mkDefault true;