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:
parent
90fd1baf51
commit
cd2fad3dcc
|
@ -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;
|
||||
};
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user