Skip to content

Commit 7f129e3

Browse files
committed
nixos/build.nix: Make independent
1 parent dd6d8e3 commit 7f129e3

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

nixos/modules/system/activation/top-level.nix

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,11 @@ in
141141
imports = [
142142
(mkRemovedOptionModule [ "nesting" "clone" ] "Use `specialisation.«name» = { inheritParentConfig = true; configuration = { ... }; }` instead.")
143143
(mkRemovedOptionModule [ "nesting" "children" ] "Use `specialisation.«name».configuration = { ... }` instead.")
144+
../build.nix
144145
];
145146

146147
options = {
147148

148-
system.build = mkOption {
149-
internal = true;
150-
default = {};
151-
type = types.attrs;
152-
description = ''
153-
Attribute set of derivations used to setup the system.
154-
'';
155-
};
156-
157149
specialisation = mkOption {
158150
default = {};
159151
example = lib.literalExpression "{ fewJobsManyCores.configuration = { nix.buildCores = 0; nix.maxJobs = 1; }; }";

nixos/modules/system/build.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{ lib, ... }:
2+
let
3+
inherit (lib) mkOption types;
4+
in {
5+
options = {
6+
# TODO: replace by submodule with free-form type
7+
system.build = mkOption {
8+
internal = true;
9+
default = {};
10+
type = types.attrs;
11+
description = ''
12+
Attribute set of derivations used to set up the system.
13+
'';
14+
};
15+
};
16+
}

0 commit comments

Comments
 (0)