Skip to content

Commit cee3b09

Browse files
committed
nix.nix: add option nix.enable for compatibility
Add `option.nix.enable` to ease integration with NixOS macros. Hard-code `{ config.nix.enable = true; }`.
1 parent 2c7f03a commit cee3b09

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

modules/environment/nix.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ in
2727
options = {
2828

2929
nix = {
30+
enable = mkOption {
31+
type = types.bool;
32+
default = true;
33+
description = ''
34+
Whether to enable Nix.
35+
Disabling Nix is not supported in NixOnDroid. This option is here to
36+
make it compatible to the upstream NixOS modules.
37+
'';
38+
};
39+
3040
package = mkOption {
3141
type = types.package;
3242
default = pkgs.nix;
@@ -150,6 +160,7 @@ in
150160
};
151161

152162
nix = {
163+
enable = true;
153164
substituters = [
154165
"https://cache.nixos.org"
155166
"https://nix-on-droid.cachix.org"

0 commit comments

Comments
 (0)