Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/nixos/modules/system/build.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
403 B
Nix
Raw Permalink Normal View History

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.
2022-01-20 14:53:35 +01:00
{ lib, ... }:
let
inherit (lib) mkOption types;
in
{
options = {
system.build = mkOption {
default = { };
description = ''
Attribute set of derivations used to set up the system.
'';
nixos: Make system.build a submodule with freeformType This allows the values below it to be specified as options, while remaining compatible with existing code.
2022-01-20 15:04:08 +01:00
type = types.submoduleWith {
modules = [
{
freeformType = with types; lazyAttrsOf (uniq unspecified);
}
];
};
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.
2022-01-20 14:53:35 +01:00
};
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 5580ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API