1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-02 11:03:33 +02:00

Use lib.optional for restartTriggers in ipts.

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Ivor Wanders 2024-03-25 17:32:46 -04:00 committed by GitHub
parent 90fd1baf51
commit cd2fad3dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ in
path = with pkgs; [ iptsd ];
script = "iptsd $(iptsd-find-hidraw)";
wantedBy = [ "multi-user.target" ];
restartTriggers = [ (if (cfg.config != null) then iptsConfFile else "") ];
restartTriggers = lib.optional (cfg.config != null) iptsConfFile;
};
})