mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/dysnomia: replace activation script
See https://github.com/NixOS/nixpkgs/issues/475305
This commit is contained in:
parent
732aaade1a
commit
2cc3de7a16
1 changed files with 4 additions and 10 deletions
|
|
@ -288,15 +288,9 @@ in
|
|||
|
||||
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
|
||||
|
||||
system.activationScripts.dysnomia = ''
|
||||
mkdir -p /etc/systemd-mutable/system
|
||||
if [ ! -f /etc/systemd-mutable/system/dysnomia.target ]
|
||||
then
|
||||
( echo "[Unit]"
|
||||
echo "Description=Services that are activated and deactivated by Dysnomia"
|
||||
echo "After=final.target"
|
||||
) > /etc/systemd-mutable/system/dysnomia.target
|
||||
fi
|
||||
'';
|
||||
systemd.targets.dysnomia = {
|
||||
description = "Services that are activated and deactivated by Dysnomia";
|
||||
after = "final.target";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue