chore: improve code formatting and configuration across multiple files
CI / Flake check (aarch64-linux) (push) Failing after 17m27s
CI / Flake check (x86_64-linux) (push) Failing after 53m5s
CI / Pre-commit checks (x86_64-linux) (push) Successful in 11s

The diff shows comprehensive code cleanup and formatting improvements across 18 files, including cleaner argument structures, additional package configurations, and improved formatting in the `home/terminal/software/git.nix` hook script.
This commit is contained in:
2026-07-20 06:50:52 +02:00
parent 4ee5658053
commit 62c70dab19
18 changed files with 272 additions and 182 deletions
+16 -11
View File
@@ -1,5 +1,9 @@
{ config, lib, pkgs, self, ... }:
{
config,
lib,
pkgs,
...
}:
# Cisco Secure Client (proprietary VPN client, successor to AnyConnect)
#
# Package: pkgs/cisco-secure-client — fetches the Linux pre-deployment .tgz
@@ -11,14 +15,15 @@
# });
#
# Reference: https://github.com/NixOS/nixpkgs/issues/265443
let
cfg = config.work.cisco;
in {
options.work.cisco = {
enable = lib.mkEnableOption "Cisco Secure Client" // {
default = false;
};
enable =
lib.mkEnableOption "Cisco Secure Client"
// {
default = false;
};
package = lib.mkOption {
description = "cisco-secure-client package to use";
@@ -41,14 +46,14 @@ in {
];
# Load the tun module required by the VPN client
boot.kernelModules = [ "tun" ];
boot.kernelModules = ["tun"];
systemd.services.cisco-vpnagentd = {
description = "Cisco Secure Client VPN Agent Daemon";
# vpnagentd daemonizes itself; tracked via PID file.
after = [ "network-online.target" "NetworkManager.service" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
after = ["network-online.target" "NetworkManager.service"];
wants = ["network-online.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
Type = "forking";
@@ -81,7 +86,7 @@ in {
"CAP_CHOWN"
"CAP_FOWNER"
];
DeviceAllow = [ "/dev/net/tun rw" ];
DeviceAllow = ["/dev/net/tun rw"];
PrivateTmp = true;
ProtectSystem = "full";
ProtectHome = false;