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/services | |
| parent | 6c71c49e2448e51ad830ed211024e6d0edc50116 (diff) | |
| parent | dae702993d18c608f07e9d320ccba816e9bce064 (diff) | |
Merge pull request #1169 from Enzime/push-uktzylymvtyk
activate-system: remove `enable` option
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/activate-system/default.nix | 20 |
1 files changed, 4 insertions, 16 deletions
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; }; - }; } |
