Add tailscale and openvpn

This commit is contained in:
muon 2024-06-17 13:36:02 +00:00
parent 86cf85a517
commit 41f182ca22
4 changed files with 37 additions and 4 deletions

View file

@ -28,7 +28,9 @@ in {
mods.desktop.enable = true;
mods.desktop.wayland.enable = false;
mods.theme.enable = true;
mods.theme.scheme = "woodland";
mods.theme.wallpaper = ./wallpaper.png;
mods.openvpn.enable = true;
services.xserver.windowManager.i3.enable = true;

View file

@ -6,6 +6,10 @@
home.packages = with pkgs; [
# ISO downloader
qbittorrent
transmission-gtk
# email
thunderbird
];
home.sessionVariables.BROWSER = "librewolf";
@ -21,6 +25,5 @@
"network.cookie.lifetimePolicy" = 0;
};
};
};
}

View file

@ -10,6 +10,11 @@ in with lib; {
# enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.fzf = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.zoxide = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
@ -20,14 +25,19 @@ in with lib; {
enableZshIntegration = mkIf cfg.zsh.enable true;
};
programs.yazi = {
enable = true;
enableZshIntegration = mkIf cfg.zsh.enable true;
};
home.packages = with pkgs; [
# libraries
glow
ueberzugpp
# file managing
fd
ripgrep
zoxide
trash-cli
# programs

View file

@ -1,3 +1,21 @@
{ pkgs, lib, ... }: {
{ pkgs, lib, config, ... }: {
options.mods = {
openvpn.enable = lib.mkEnableOption "enables openvpn config";
openvpn.config = let
username = "${config.mods.user.name}";
folder = "${config.users.users.${username}.home}/documents/openvpn/";
file = "${config.mods.user.name}.ovpn";
in lib.mkOption {
description = "the config location";
default = "${folder}${file}";
};
};
config = {
networking.networkmanager.enable = true;
services.tailscale.enable = true;
services.openvpn.servers = lib.mkIf config.mods.openvpn.enable {
remote.config = ''config ${config.mods.openvpn.config}'';
};
};
}