mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
add a modular more modular vpn config
This commit is contained in:
parent
30998ec8ea
commit
b39a66958c
4 changed files with 17 additions and 4 deletions
|
@ -5,7 +5,6 @@
|
|||
...
|
||||
}: {
|
||||
imports = with inputs.self.nixosModules; [
|
||||
common
|
||||
desktop
|
||||
hyprland
|
||||
|
||||
|
@ -20,6 +19,9 @@
|
|||
node
|
||||
tex
|
||||
];
|
||||
services.vpn.enable = true;
|
||||
|
||||
|
||||
services.restic.backups.gdrive = {
|
||||
user = "daylin";
|
||||
repository = "rclone:g:archives/othalan";
|
||||
|
@ -31,9 +33,6 @@
|
|||
zk
|
||||
rclone
|
||||
quarto
|
||||
|
||||
expect
|
||||
openconnect
|
||||
];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
common
|
||||
gui
|
||||
vscode
|
||||
vpn
|
||||
# qtile
|
||||
];
|
||||
}
|
13
modules/vpn.nix
Normal file
13
modules/vpn.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{config, lib,pkgs,...}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.services.vpn;
|
||||
in {
|
||||
options.services.vpn.enable = mkEnableOption ''
|
||||
use openconnect vpn
|
||||
'';
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [pkgs.openconnect];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue