mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
nixos/lxd-agent: fix evaluation regression caused by nixos/nixpkgs#271326
This commit is contained in:
parent
53928007cd
commit
da90576aac
|
@ -58,7 +58,9 @@ in {
|
|||
systemd.services.lxd-agent = {
|
||||
enable = true;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
before = [ "shutdown.target" ];
|
||||
before = [ "shutdown.target" ] ++ lib.optionals config.services.cloud-init.enable [
|
||||
"cloud-init.target" "cloud-init.service" "cloud-init-local.service"
|
||||
];
|
||||
conflicts = [ "shutdown.target" ];
|
||||
path = [
|
||||
pkgs.kmod
|
||||
|
@ -78,7 +80,6 @@ in {
|
|||
Description = "LXD - agent";
|
||||
Documentation = "https://documentation.ubuntu.com/lxd/en/latest";
|
||||
ConditionPathExists = "/dev/virtio-ports/org.linuxcontainers.lxd";
|
||||
Before = lib.optionals config.services.cloud-init.enable [ "cloud-init.target" "cloud-init.service" "cloud-init-local.service" ];
|
||||
DefaultDependencies = "no";
|
||||
StartLimitInterval = "60";
|
||||
StartLimitBurst = "10";
|
||||
|
|
Loading…
Reference in a new issue