Compare commits

..

No commits in common. "002e3e8ec551d97350941547ab408a71727f64db" and "bd5a3f50ee93cfc4f4983016d21c52249c178e8b" have entirely different histories.

3 changed files with 1 additions and 38 deletions

View File

@ -25,6 +25,7 @@
docker-compose
podman-tui
dive
appgate-sdp
];
# Modules
@ -35,7 +36,6 @@
peripherals.enable = true;
};
programs = {
appgate-sdp.enable = true;
chezmoi.apply = true;
kitty.enable = true;
virt-manager.enable = true;

View File

@ -1,36 +0,0 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.programs.appgate-sdp;
in {
options.modules.programs.appgate-sdp.enable = lib.mkEnableOption "appgate-sdp";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
appgate-sdp
(pkgs.writeScriptBin "appgate-sdp-wrapped" ''
#!/bin/sh
appgate
sudo systemctl restart resolvconf.service
'')
];
home-manager.users.${user} = {
# Custom entry that uses wrapped binary
xdg.desktopEntries.appgate = {
name="Appgate SDP";
exec="pkexec appgate-sdp-wrapped";
icon="appgate-icon";
terminal = false;
type = "Application";
mimeType= ["x-scheme-handler/appgate"];
categories= ["Network"];
};
};
boot.kernelModules = [ "tun" ];
services.dbus.packages = [ pkgs.appgate-sdp ];
systemd = {
packages = [ pkgs.appgate-sdp ];
# https://github.com/NixOS/nixpkgs/issues/81138
services.appgatedriver.wantedBy = [ "multi-user.target" ];
};
};
}

View File

@ -1,7 +1,6 @@
{ ... }:
{
imports = [
./appgate-sdp.nix
./base-terminal.nix
./beancount.nix
./borg.nix