diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-16 22:22:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-16 22:22:34 +0100 |
| commit | 8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch) | |
| tree | c5059edcbebd9644290cad7c653c49a36d593021 /modules/nix/nix-darwin.nix | |
| parent | 6bd39d420578aacf7c0bab7de3e7027b952115ae (diff) | |
| parent | bd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff) | |
Diffstat (limited to 'modules/nix/nix-darwin.nix')
| -rw-r--r-- | modules/nix/nix-darwin.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/modules/nix/nix-darwin.nix b/modules/nix/nix-darwin.nix index ad1ab8f..4a989d7 100644 --- a/modules/nix/nix-darwin.nix +++ b/modules/nix/nix-darwin.nix @@ -13,8 +13,19 @@ let in { - options = { - system.includeUninstaller = lib.mkOption { + options.system = { + disableInstallerTools = lib.mkOption { + type = lib.types.bool; + internal = true; + default = false; + description = '' + Disable darwin-rebuild and darwin-option. This is useful to shrink + systems which are not expected to rebuild or reconfigure themselves. + Use at your own risk! + ''; + }; + + includeUninstaller = lib.mkOption { type = lib.types.bool; internal = true; default = true; @@ -23,10 +34,10 @@ in config = { environment.systemPackages = - [ # Include nix-tools by default + [ darwin-version ] + ++ lib.optionals (!config.system.disableInstallerTools) [ darwin-option darwin-rebuild - darwin-version ] ++ lib.optional config.system.includeUninstaller darwin-uninstaller; system.build = { |
