grafana-alloy: don't build the frontend twice
[NixPkgs.git] / nixos / modules / programs / appgate-sdp.nix
blobf4d4140571a64a938f5627181a723ce2d88d1ce0
1 { config, pkgs, lib, ... }:
4   options = {
5     programs.appgate-sdp = {
6       enable = lib.mkEnableOption "the AppGate SDP VPN client";
7     };
8   };
10   config = lib.mkIf config.programs.appgate-sdp.enable {
11     boot.kernelModules = [ "tun" ];
12     environment.systemPackages = [ pkgs.appgate-sdp ];
13     services.dbus.packages = [ pkgs.appgate-sdp ];
14     systemd = {
15       packages = [ pkgs.appgate-sdp ];
16       # https://github.com/NixOS/nixpkgs/issues/81138
17       services.appgatedriver.wantedBy = [ "multi-user.target" ];
18       services.appgate-dumb-resolver.path = [ pkgs.e2fsprogs ];
19       services.appgate-resolver.path = [ pkgs.procps pkgs.e2fsprogs ];
20       services.appgatedriver.path = [ pkgs.e2fsprogs ];
21     };
22   };