Compare commits

...

2 commits

Author SHA1 Message Date
Trolli Schmittlauch 6f936dc3f8 home.git: provide git mergetool -t nixfmt 2025-03-20 15:38:34 +01:00
Trolli Schmittlauch 3516b5fb91 workmac: add autossh-based socks proxy job to Hydra
native launchd user job
2025-03-20 15:38:34 +01:00
2 changed files with 25 additions and 0 deletions

View file

@ -3,6 +3,7 @@
inputs,
config,
system,
lib,
...
}:
{
@ -48,6 +49,11 @@
init.defaultBranch = "mainline";
diff.tool = "vimdiff";
merge.tool = "vimdiff";
# provide `git mergetool -t nixfmt`
mergetool.nixfmt = {
cmd = "${lib.getExe pkgs.nixfmt-rfc-style} --mergetool \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"";
trustExitCode = true;
};
core.excludesfile = toString (
pkgs.writeText ".gitignore_global" ''
# Direnv stuff #

View file

@ -94,6 +94,25 @@ in
+ import ./scripts/ssh-loop-fc.nix { inherit pkgs lib; }
);
launchd.agents.hydra_proxy = {
enable = true;
config = {
ProgramArguments = [
"${lib.getExe pkgs.autossh}"
"-M"
"0"
"-D"
"1080"
"-oServerAliveInterval=60"
"-oControlMaster=no"
"-N"
"vpn-whq.services.fcio.net"
];
# TODO: consider socket activation instead
KeepAlive = true;
ThrottleInterval = 60;
};
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "1password-cli" ];
home.stateVersion = "22.05";