diff options
| author | Hraban Luyat <hraban@0brg.net> | 2023-05-15 13:18:38 -0400 |
|---|---|---|
| committer | Hraban Luyat <hraban@0brg.net> | 2023-05-15 13:44:02 -0400 |
| commit | f1a562eef19a042a1b2693e412a1f95aad11eab6 (patch) | |
| tree | 726386481e67f6e29ae1dae732c572abe5f0bb4f /modules/system | |
| parent | f6b7489ddb316eb2b331e2f3a5ef43e11d8eff34 (diff) | |
refactor: rename clock option menuExtraClock
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/defaults-write.nix | 6 | ||||
| -rw-r--r-- | modules/system/defaults/clock.nix | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix index 9bf1963..9502f42 100644 --- a/modules/system/defaults-write.nix +++ b/modules/system/defaults-write.nix @@ -29,7 +29,7 @@ let GlobalPreferences = defaultsToList ".GlobalPreferences" cfg.".GlobalPreferences"; LaunchServices = defaultsToList "com.apple.LaunchServices" cfg.LaunchServices; NSGlobalDomain = defaultsToList "-g" cfg.NSGlobalDomain; - clock = defaultsToList "com.apple.menuextra.clock" cfg.clock; + menuExtraClock = defaultsToList "com.apple.menuextra.clock" cfg.menuExtraClock; dock = defaultsToList "com.apple.dock" cfg.dock; finder = defaultsToList "com.apple.finder" cfg.finder; magicmouse = defaultsToList "com.apple.AppleMultitouchMouse" cfg.magicmouse; @@ -81,7 +81,7 @@ in GlobalPreferences LaunchServices NSGlobalDomain - clock + menuExtraClock dock finder magicmouse @@ -103,7 +103,7 @@ in ${concatStringsSep "\n" GlobalPreferences} ${concatStringsSep "\n" LaunchServices} - ${concatStringsSep "\n" clock} + ${concatStringsSep "\n" menuExtraClock} ${concatStringsSep "\n" dock} ${concatStringsSep "\n" finder} ${concatStringsSep "\n" magicmouse} diff --git a/modules/system/defaults/clock.nix b/modules/system/defaults/clock.nix index 9ec0471..ef2cac4 100644 --- a/modules/system/defaults/clock.nix +++ b/modules/system/defaults/clock.nix @@ -5,7 +5,7 @@ with lib; { options = { - system.defaults.clock.IsAnalog = mkOption { + system.defaults.menuExtraClock.IsAnalog = mkOption { type = types.nullOr types.bool; default = null; description = '' @@ -13,7 +13,7 @@ with lib; ''; }; - system.defaults.clock.Show24Hour = mkOption { + system.defaults.menuExtraClock.Show24Hour = mkOption { type = types.nullOr types.bool; default = null; description = '' @@ -21,7 +21,7 @@ with lib; ''; }; - system.defaults.clock.ShowAMPM = mkOption { + system.defaults.menuExtraClock.ShowAMPM = mkOption { type = types.nullOr types.bool; default = null; description = '' @@ -29,7 +29,7 @@ with lib; ''; }; - system.defaults.clock.ShowDayOfMonth = mkOption { + system.defaults.menuExtraClock.ShowDayOfMonth = mkOption { type = types.nullOr types.bool; default = null; description = '' @@ -37,7 +37,7 @@ with lib; ''; }; - system.defaults.clock.ShowDayOfWeek = mkOption { + system.defaults.menuExtraClock.ShowDayOfWeek = mkOption { type = types.nullOr types.bool; default = null; description = '' @@ -45,7 +45,7 @@ with lib; ''; }; - system.defaults.clock.ShowDate = mkOption { + system.defaults.menuExtraClock.ShowDate = mkOption { type = types.nullOr (types.enum [ 0 1 2 ]); default = null; description = '' @@ -59,7 +59,7 @@ with lib; ''; }; - system.defaults.clock.ShowSeconds = mkOption { + system.defaults.menuExtraClock.ShowSeconds = mkOption { type = types.nullOr types.bool; default = null; description = '' |
