summaryrefslogtreecommitdiff
path: root/modules/services/activate-system
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-15 14:03:43 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-15 14:10:48 +1100
commitdae702993d18c608f07e9d320ccba816e9bce064 (patch)
treef7703d194fbe9a9bb51ca9744f9eb441a084ecb0 /modules/services/activate-system
parent6c71c49e2448e51ad830ed211024e6d0edc50116 (diff)
activate-system: remove `enable` option
Disabling this is not supported as `/run` gets cleared out on every reboot so it is necessary for ensuring that the `/run/current-system` symlink exists.
Diffstat (limited to 'modules/services/activate-system')
-rw-r--r--modules/services/activate-system/default.nix20
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;
};
-
};
}