mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix vpn
This commit is contained in:
parent
91c9437d56
commit
64dafeee1c
2 changed files with 8 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
options.mods = {
|
||||
tailscale.enable = lib.mkEnableOption "enables tailscale";
|
||||
openvpn.enable = lib.mkEnableOption "enables openvpn config";
|
||||
openvpn.config = let
|
||||
username = "${config.mods.user.name}";
|
||||
|
|
@ -13,13 +14,9 @@
|
|||
|
||||
config = {
|
||||
networking.hostName = config.mods.user.name;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
openvpn
|
||||
];
|
||||
services.tailscale.enable = config.mods.tailscale.enable;
|
||||
|
||||
services.openvpn.servers = lib.mkIf config.mods.openvpn.enable {
|
||||
remote.config = ''config ${config.mods.openvpn.config}'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue