Skip to content

Commit

Permalink
fix(defaults): fixing type expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMendesl committed Nov 11, 2024
1 parent 735284f commit 73cc754
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/system/defaults/controlcenter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
options = {

system.defaults.controlcenter.BatteryShowPercentage = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
default = null;
description = ''
Apple menu > System Preferences > Control Center > Battery
Expand All @@ -14,7 +14,7 @@
};

system.defaults.controlcenter.Sound = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
apply = v: if v == null then null else if v == true then 18 else 24;
default = null;
description = ''
Expand All @@ -28,7 +28,7 @@
};

system.defaults.controlcenter.Bluetooth = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
apply = v: if v == null then null else if v == true then 18 else 24;
default = null;
description = ''
Expand All @@ -42,7 +42,7 @@
};

system.defaults.controlcenter.AirDrop = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
apply = v: if v == null then null else if v == true then 18 else 24;
default = null;
description = ''
Expand All @@ -56,7 +56,7 @@
};

system.defaults.controlcenter.Display = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
apply = v: if v == null then null else if v == true then 18 else 24;
default = null;
description = ''
Expand All @@ -70,7 +70,7 @@
};

system.defaults.controlcenter.FocusModes = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
apply = v: if v == null then null else if v == true then 18 else 24;
default = null;
description = ''
Expand All @@ -84,7 +84,7 @@
};

system.defaults.controlcenter.NowPlaying = lib.mkOption {
type = types.nullOr types.bool;
type = lib.types.nullOr lib.types.bool;
apply = v: if v == null then null else if v == true then 18 else 24;
default = null;
description = ''
Expand Down

0 comments on commit 73cc754

Please sign in to comment.