Add option ‘boot.systemd.packages’ to use units from the specified packages
This commit is contained in:
parent
e02b57df9b
commit
223f04b3ca
@ -250,6 +250,10 @@ let
|
|||||||
ln -s $i/* $out/
|
ln -s $i/* $out/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for i in ${toString cfg.packages}; do
|
||||||
|
ln -s $i/etc/systemd/system/* $out/
|
||||||
|
done
|
||||||
|
|
||||||
${concatStrings (mapAttrsToList (name: unit:
|
${concatStrings (mapAttrsToList (name: unit:
|
||||||
concatMapStrings (name2: ''
|
concatMapStrings (name2: ''
|
||||||
mkdir -p $out/${name2}.wants
|
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 {
|
boot.systemd.services = mkOption {
|
||||||
description = "Definition of systemd services.";
|
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrsOf types.optionSet;
|
type = types.attrsOf types.optionSet;
|
||||||
options = [ serviceOptions serviceConfig ];
|
options = [ serviceOptions serviceConfig ];
|
||||||
|
description = "Definition of systemd services.";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.systemd.defaultUnit = mkOption {
|
boot.systemd.defaultUnit = mkOption {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user