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
|
|
@ -15,14 +15,18 @@ in {
|
||||||
# Modules
|
# Modules
|
||||||
mods.desktop.enable = true;
|
mods.desktop.enable = true;
|
||||||
mods.desktop.wayland.enable = false;
|
mods.desktop.wayland.enable = false;
|
||||||
|
|
||||||
mods.theme.enable = true;
|
mods.theme.enable = true;
|
||||||
mods.theme.scheme = "woodland";
|
mods.theme.scheme = "woodland";
|
||||||
mods.theme.wallpaper = ./wallpaper.png;
|
mods.theme.wallpaper = ./wallpaper.png;
|
||||||
mods.openvpn.enable = true;
|
|
||||||
mods.containers.steam.enable = true;
|
mods.containers.steam.enable = false;
|
||||||
mods.server.media.enable = true;
|
mods.server.media.enable = true;
|
||||||
# mods.server.astral.enable = true;
|
# mods.server.astral.enable = true;
|
||||||
|
|
||||||
|
mods.tailscale.enable = true;
|
||||||
|
mods.openvpn.enable = false;
|
||||||
|
|
||||||
services.xserver.windowManager.i3.enable = true;
|
services.xserver.windowManager.i3.enable = true;
|
||||||
|
|
||||||
# Proprietary </3
|
# Proprietary </3
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
{ pkgs, lib, config, ... }: {
|
||||||
options.mods = {
|
options.mods = {
|
||||||
|
tailscale.enable = lib.mkEnableOption "enables tailscale";
|
||||||
openvpn.enable = lib.mkEnableOption "enables openvpn config";
|
openvpn.enable = lib.mkEnableOption "enables openvpn config";
|
||||||
openvpn.config = let
|
openvpn.config = let
|
||||||
username = "${config.mods.user.name}";
|
username = "${config.mods.user.name}";
|
||||||
|
|
@ -13,13 +14,9 @@
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.hostName = config.mods.user.name;
|
networking.hostName = config.mods.user.name;
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
services.tailscale.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
services.tailscale.enable = config.mods.tailscale.enable;
|
||||||
openvpn
|
|
||||||
];
|
|
||||||
|
|
||||||
services.openvpn.servers = lib.mkIf config.mods.openvpn.enable {
|
services.openvpn.servers = lib.mkIf config.mods.openvpn.enable {
|
||||||
remote.config = ''config ${config.mods.openvpn.config}'';
|
remote.config = ''config ${config.mods.openvpn.config}'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue