3
0
Fork 0
forked from mirrors/nixpkgs

nixos/k3s: add zfs to path

This commit is contained in:
Jörg Thalheim 2021-06-05 07:48:20 +02:00
parent 7c310e8d28
commit 03582eb6e3
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -87,6 +87,7 @@ in
description = "k3s service";
after = mkIf cfg.docker [ "docker.service" ];
wantedBy = [ "multi-user.target" ];
path = optional config.boot.zfs.enabled config.boot.zfs.package;
serviceConfig = {
# See: https://github.com/rancher/k3s/blob/dddbd16305284ae4bd14c0aade892412310d7edc/install.sh#L197
Type = if cfg.role == "agent" then "exec" else "notify";