Remove all git-crypt
This commit is contained in:
parent
22836a44d7
commit
97409f47e4
19 changed files with 86 additions and 47 deletions
|
@ -1,10 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./secret.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
chvp.work.vpn.enable = lib.mkOption {
|
||||
default = false;
|
||||
|
@ -17,10 +13,16 @@
|
|||
ugent-global-vpn = {
|
||||
after = [ "network.target" ];
|
||||
conflicts = [ "ugent-local-vpn.service" ];
|
||||
path = [ pkgs.sshuttle pkgs.openssh pkgs.bash ];
|
||||
environment = { PASSWORD_FILE = config.age.secrets."passwords/ugent-vpn".path; };
|
||||
serviceConfig.ExecStart = config.age.secrets."files/programs/vpn/global".path;
|
||||
};
|
||||
ugent-local-vpn = {
|
||||
after = [ "network.target" ];
|
||||
conflicts = [ "ugent-global-vpn.service" ];
|
||||
path = [ pkgs.sshuttle pkgs.openssh pkgs.bash ];
|
||||
environment = { PASSWORD_FILE = config.age.secrets."passwords/ugent-vpn".path; };
|
||||
serviceConfig.ExecStart = config.age.secrets."files/programs/vpn/local".path;
|
||||
};
|
||||
};
|
||||
security.polkit.extraConfig = ''
|
||||
|
@ -34,5 +36,13 @@
|
|||
});
|
||||
'';
|
||||
age.secrets."passwords/ugent-vpn".file = ../../../secrets/passwords/ugent-vpn.age;
|
||||
age.secrets."files/programs/vpn/local" = {
|
||||
file = ../../../secrets/files/programs/vpn/local.age;
|
||||
mode = "0500";
|
||||
};
|
||||
age.secrets."files/programs/vpn/global" = {
|
||||
file = ../../../secrets/files/programs/vpn/global.age;
|
||||
mode = "0500";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue