feat: ...get internet again. git-hooks.nix adopt

This commit is contained in:
Kat Inskip 2025-08-18 15:13:47 -07:00
parent 7a0f09e700
commit e00ec8f2f2
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
116 changed files with 1157 additions and 4681 deletions

View file

@ -0,0 +1,27 @@
{lib, ...}: let
inherit (lib.generators) toJSON;
mullvadSettings = builtins.toJSON {
allow_lan = true;
auto_connect = true;
block_when_disconnected = true;
};
in {
services.mullvad-vpn.enable = true;
#sops.secrets.mullvad-vpn-account-number = {
#sopsFile = ./secrets.yaml;
#};
systemd = {
services."mullvad-daemon".environment.MULLVAD_SETTINGS_DIR = "/var/lib/mullvad-vpn";
tmpfiles.settings."10-mullvad-settings" = {
"/var/lib/mullvad-vpn/settings.json"."C+" = {
group = "root";
mode = "0700";
user = "root";
argument = "${mullvadSettings}";
};
};
};
}