summary refs log tree commit diff
path: root/nixos/modules/system/activation
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-01-20 14:53:35 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-01-24 00:47:57 +0100
commit3ac955acf44e2155d1fef77c49b5c6f068e6e27b (patch)
treeab9d26d97b79800b548745da8ed4fb3f93a4ceed /nixos/modules/system/activation
parentbadf5a0dc489c50bba30c957b7c708cb74d30da8 (diff)
downloadnixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.tar
nixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.tar.gz
nixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.tar.bz2
nixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.tar.lz
nixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.tar.xz
nixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.tar.zst
nixpkgs-3ac955acf44e2155d1fef77c49b5c6f068e6e27b.zip
nixos/system/build: Extract
Modules that do not depend on e.g. toplevel should not have to include it just to set
things in `system.build`. As a general rule, this keeps tests simple, usage flexible
and evaluation fast. While one module is insignificant, consistency and good practices
are.
Diffstat (limited to 'nixos/modules/system/activation')
-rw-r--r--nixos/modules/system/activation/top-level.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index 8e53ec1ffab..e10d668ad2c 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -139,21 +139,13 @@ in
 
 {
   imports = [
+    ../build.nix
     (mkRemovedOptionModule [ "nesting" "clone" ] "Use `specialisation.«name» = { inheritParentConfig = true; configuration = { ... }; }` instead.")
     (mkRemovedOptionModule [ "nesting" "children" ] "Use `specialisation.«name».configuration = { ... }` instead.")
   ];
 
   options = {
 
-    system.build = mkOption {
-      internal = true;
-      default = {};
-      type = with types; lazyAttrsOf (uniq unspecified);
-      description = ''
-        Attribute set of derivations used to setup the system.
-      '';
-    };
-
     specialisation = mkOption {
       default = {};
       example = lib.literalExpression "{ fewJobsManyCores.configuration = { nix.buildCores = 0; nix.maxJobs = 1; }; }";