nixos/k3s: add zfs to path

master
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
1 changed files with 1 additions and 0 deletions

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";