Merge branch 'master' of github.com:starr-dusT/dotfiles

This commit is contained in:
Tyler Starr 2024-11-27 13:51:11 -08:00
commit e4d34217ce
3 changed files with 40 additions and 5 deletions

View File

@ -25,7 +25,8 @@
docker-compose docker-compose
podman-tui podman-tui
dive dive
appgate-sdp uhd
gnuradio
]; ];
# Modules # Modules
@ -33,19 +34,16 @@
desktop = { desktop = {
enable = true; enable = true;
gnome.enable = true; gnome.enable = true;
peripherals.enable = true;
}; };
programs = { programs = {
appgate-sdp.enable = true;
chezmoi.apply = true; chezmoi.apply = true;
kitty.enable = true; kitty.enable = true;
virt-manager.enable = true; virt-manager.enable = true;
}; };
services = { services = {
samba-client.enable = true; samba-client.enable = true;
};
system = {
ssh.enable = true; ssh.enable = true;
terminal.enable = true;
}; };
}; };
} }

View File

@ -0,0 +1,36 @@
{ 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,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./appgate-sdp.nix
./base-terminal.nix ./base-terminal.nix
./beancount.nix ./beancount.nix
./borg.nix ./borg.nix