Nix module: make package nullable

This commit is contained in:
Mihai Fufezan 2022-07-30 18:11:46 +03:00
parent 191c02a4f4
commit 3c544e1c31
No known key found for this signature in database
GPG key ID: 5899325F2F120900

View file

@ -18,7 +18,7 @@ in {
'';
package = mkOption {
type = types.package;
type = types.nullOr types.package;
default = self.packages.${pkgs.system}.default;
defaultText = literalExpression "<Hyprland flake>.packages.<system>.default";
example = literalExpression "<Hyprland flake>.packages.<system>.default.override { }";