add wireguard

This commit is contained in:
Sakooooo 2023-09-19 13:41:16 +04:00
parent 9351bf5f33
commit 8581cb4187
Signed by: sako
GPG key ID: 3FD715D87D7725E0
5 changed files with 23 additions and 1 deletions

View file

@ -307,7 +307,6 @@ myStartupHook = do
spawnOnce "flameshot" spawnOnce "flameshot"
spawn "picom" spawn "picom"
spawn "trayer --edge bottom --align right --iconspacing 5 --height 30 --widthtype request --alpha 0 --transparent true --tint 'black'" spawn "trayer --edge bottom --align right --iconspacing 5 --height 30 --widthtype request --alpha 0 --transparent true --tint 'black'"
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- Now run xmonad with all the defaults we set up. -- Now run xmonad with all the defaults we set up.

View file

@ -18,6 +18,7 @@
modules = { modules = {
desktop = { desktop = {
wireguard.enable = true;
kitty.enable = true; kitty.enable = true;
dwm.enable = false; dwm.enable = false;
xmonad.enable = true; xmonad.enable = true;

View file

@ -21,5 +21,7 @@
./picom ./picom
# boot # boot
./plymouth ./plymouth
# vpn
./wireguard
]; ];
} }

View file

@ -0,0 +1,20 @@
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.wireguard;
in {
options.modules.desktop.wireguard = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# todo declaritivly setting it up
networking.wireguard.enable = true;
};
}

View file