1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

Add option ‘boot.systemd.packages’ to use units from the specified packages

This commit is contained in:
Eelco Dolstra 2012-08-21 11:28:47 -04:00
parent e02b57df9b
commit 223f04b3ca

View file

@ -250,6 +250,10 @@ let
ln -s $i/* $out/
done
for i in ${toString cfg.packages}; do
ln -s $i/etc/systemd/system/* $out/
done
${concatStrings (mapAttrsToList (name: unit:
concatMapStrings (name2: ''
mkdir -p $out/${name2}.wants
@ -288,11 +292,17 @@ in
};
};
boot.systemd.packages = mkOption {
default = [];
type = types.listOf types.package;
description = "Packages providing systemd units.";
};
boot.systemd.services = mkOption {
description = "Definition of systemd services.";
default = {};
type = types.attrsOf types.optionSet;
options = [ serviceOptions serviceConfig ];
description = "Definition of systemd services.";
};
boot.systemd.defaultUnit = mkOption {