mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add tailscale and openvpn
This commit is contained in:
parent
86cf85a517
commit
41f182ca22
4 changed files with 37 additions and 4 deletions
|
|
@ -28,7 +28,9 @@ in {
|
||||||
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.wallpaper = ./wallpaper.png;
|
mods.theme.wallpaper = ./wallpaper.png;
|
||||||
|
mods.openvpn.enable = true;
|
||||||
|
|
||||||
services.xserver.windowManager.i3.enable = true;
|
services.xserver.windowManager.i3.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# ISO downloader
|
# ISO downloader
|
||||||
qbittorrent
|
qbittorrent
|
||||||
|
transmission-gtk
|
||||||
|
|
||||||
|
# email
|
||||||
|
thunderbird
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "librewolf";
|
home.sessionVariables.BROWSER = "librewolf";
|
||||||
|
|
@ -21,6 +25,5 @@
|
||||||
"network.cookie.lifetimePolicy" = 0;
|
"network.cookie.lifetimePolicy" = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,11 @@ in with lib; {
|
||||||
# enableZshIntegration = mkIf cfg.zsh.enable true;
|
# enableZshIntegration = mkIf cfg.zsh.enable true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = mkIf cfg.zsh.enable true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = mkIf cfg.zsh.enable true;
|
enableZshIntegration = mkIf cfg.zsh.enable true;
|
||||||
|
|
@ -20,14 +25,19 @@ in with lib; {
|
||||||
enableZshIntegration = mkIf cfg.zsh.enable true;
|
enableZshIntegration = mkIf cfg.zsh.enable true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = mkIf cfg.zsh.enable true;
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# libraries
|
# libraries
|
||||||
glow
|
glow
|
||||||
|
ueberzugpp
|
||||||
|
|
||||||
# file managing
|
# file managing
|
||||||
fd
|
fd
|
||||||
ripgrep
|
ripgrep
|
||||||
zoxide
|
|
||||||
trash-cli
|
trash-cli
|
||||||
|
|
||||||
# programs
|
# programs
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
{ pkgs, lib, ... }: {
|
{ pkgs, lib, config, ... }: {
|
||||||
networking.networkmanager.enable = true;
|
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}'';
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue