mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
systemd service: rename generator-packages
This commit is contained in:
parent
cc9fb5f015
commit
fd405dab3e
3 changed files with 7 additions and 4 deletions
|
@ -497,7 +497,7 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.generator-packages = mkOption {
|
||||
systemd.generatorPackages = mkOption {
|
||||
default = [];
|
||||
type = types.listOf types.package;
|
||||
example = literalExample "[ pkgs.systemd-cryptsetup-generator ]";
|
||||
|
@ -762,10 +762,10 @@ in
|
|||
|
||||
environment.etc = let
|
||||
# generate contents for /etc/systemd/system-generators from
|
||||
# systemd.generators and systemd.generator-packages
|
||||
# systemd.generators and systemd.generatorPackages
|
||||
generators = pkgs.runCommand "system-generators" {
|
||||
preferLocalBuild = true;
|
||||
packages = cfg.generator-packages;
|
||||
packages = cfg.generatorPackages;
|
||||
} ''
|
||||
mkdir -p $out
|
||||
for package in $packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue