diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-02 18:50:22 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-02 18:50:22 +0200 |
| commit | 5e3147d75c4801cebbada0b4c64b4d253074031a (patch) | |
| tree | cc77deec97721a456a96ab7f8eab6928328bc637 /custom | |
| parent | 2ef1f3cff878d23981a9c0f993cbb338309b696a (diff) | |
| download | nixos-5e3147d75c4801cebbada0b4c64b4d253074031a.tar nixos-5e3147d75c4801cebbada0b4c64b4d253074031a.tar.gz nixos-5e3147d75c4801cebbada0b4c64b4d253074031a.tar.bz2 nixos-5e3147d75c4801cebbada0b4c64b4d253074031a.tar.xz nixos-5e3147d75c4801cebbada0b4c64b4d253074031a.zip | |
...
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/uucp-notifyclient.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/uucp-notifyclient.nix b/custom/uucp-notifyclient.nix index a14a6531..2297d675 100644 --- a/custom/uucp-notifyclient.nix +++ b/custom/uucp-notifyclient.nix | |||
| @@ -29,7 +29,7 @@ in { | |||
| 29 | imports = [ ./notify-users.nix ]; | 29 | imports = [ ./notify-users.nix ]; |
| 30 | 30 | ||
| 31 | config = mkIf (cfg.remoteNodes != {}) { | 31 | config = mkIf (cfg.remoteNodes != {}) { |
| 32 | assertions = map (user: { assertion = elem user config.services.notify-users; message = "Notification must be allowed for ${user}!"; }) (concatLists (mapAttrsToList (name: { allowedUsers }: allowedUsers) cfg.remoteNodes)); | 32 | assertions = map (user: { assertion = elem user config.services.notify-users; message = "Notification must be allowed for ${user}!"; }) (concatLists (mapAttrsToList (name: { allowedUsers, ... }: allowedUsers) cfg.remoteNodes)); |
| 33 | 33 | ||
| 34 | services.uucp.remoteNodes = mapAttrs (name: { allowedUsers, ... }: { commands = map (user: "notify-${user}") allowedUsers; }) cfg.remoteNodes; | 34 | services.uucp.remoteNodes = mapAttrs (name: { allowedUsers, ... }: { commands = map (user: "notify-${user}") allowedUsers; }) cfg.remoteNodes; |
| 35 | services.uucp.commandPath = [ config.security.wrapperDir ]; | 35 | services.uucp.commandPath = [ config.security.wrapperDir ]; |
