nixpkgs/nixos
Taeer Bar-Yam 0bef0c38f7 lib.modules: add mkDerivedConfig
mkDerivedConfig : Option a -> (a -> Definition b) -> Definition b

Create config definitions with the same priority as the definition of another option.
This should be used for option definitions where one option sets the value of another as a convenience.
For instance a config file could be set with a `text` or `source` option, where text translates to a `source`
value using `mkDerivedConfig options.text (pkgs.writeText "filename.conf")`.

It takes care of setting the right priority using `mkOverride`.
2021-11-15 07:03:41 -05:00
..
doc Merge pull request #144933 from Artturin/ananicyinit 2021-11-12 21:08:14 +02:00
lib Merge pull request #142747 from helsinki-systems/fix/test-runner-execute 2021-11-02 14:51:50 +01:00
maintainers create-amis.sh: possible deprecation 2021-11-11 09:04:29 -07:00
modules lib.modules: add mkDerivedConfig 2021-11-15 07:03:41 -05:00
tests nixosTests.domination: init 2021-11-13 23:00:20 +01:00
COPYING
default.nix
README
release-combined.nix release-combined.tested: Add the Sway test 2021-05-27 13:36:48 +02:00
release-small.nix
release.nix lxdImage: split from docker profile, use generators.toYAML 2021-11-03 07:49:54 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.