diff options
| author | Michael Hoang <Enzime@users.noreply.github.com> | 2024-11-15 03:53:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-15 03:53:49 +0000 |
| commit | f86f158efd4bab8dce3e207e4621f1df3a760b7a (patch) | |
| tree | f7703d194fbe9a9bb51ca9744f9eb441a084ecb0 /modules | |
| parent | 6c71c49e2448e51ad830ed211024e6d0edc50116 (diff) | |
| parent | dae702993d18c608f07e9d320ccba816e9bce064 (diff) | |
Merge pull request #1169 from Enzime/push-uktzylymvtyk
activate-system: remove `enable` option
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nix/default.nix | 1 | ||||
| -rw-r--r-- | modules/services/activate-system/default.nix | 20 |
2 files changed, 4 insertions, 17 deletions
diff --git a/modules/nix/default.nix b/modules/nix/default.nix index d99aae8..3751e8c 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -774,7 +774,6 @@ in # Not in NixOS module warnings = [ - (mkIf (!config.services.activate-system.enable && cfg.distributedBuilds) "services.activate-system is not enabled, a reboot could cause distributed builds to stop working.") (mkIf (!cfg.distributedBuilds && cfg.buildMachines != []) "nix.distributedBuilds is not enabled, build machines won't be configured.") ]; diff --git a/modules/services/activate-system/default.nix b/modules/services/activate-system/default.nix index c41d963..6a982fe 100644 --- a/modules/services/activate-system/default.nix +++ b/modules/services/activate-system/default.nix @@ -1,22 +1,11 @@ { config, lib, pkgs, ... }: -with lib; - -let - cfg = config.services.activate-system; -in - { - options = { - services.activate-system.enable = mkOption { - type = types.bool; - default = true; - description = "Whether to activate system at boot time."; - }; - }; - - config = mkIf cfg.enable { + imports = [ + (lib.mkRemovedOptionModule [ "services" "activate-system" "enable" ] "The `activate-system` service is now always enabled as it is necessary for a working `nix-darwin` setup.") + ]; + config = { launchd.daemons.activate-system = { script = '' set -e @@ -41,6 +30,5 @@ in serviceConfig.RunAtLoad = true; serviceConfig.KeepAlive.SuccessfulExit = false; }; - }; } |
