mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
15 lines
394 B
Nix
15 lines
394 B
Nix
{ lib, config, ... }:
|
|
let
|
|
moduleName = "firezone-client";
|
|
inherit (config.swarselsystems) mainUser;
|
|
in
|
|
{
|
|
options.swarselmodules.${moduleName} = lib.mkEnableOption "${moduleName} settings";
|
|
config = lib.mkIf config.swarselmodules.${moduleName} {
|
|
services.firezone.gui-client = {
|
|
enable = true;
|
|
inherit (config.node) name;
|
|
allowedUsers = [ mainUser ];
|
|
};
|
|
};
|
|
}
|