add wireguard
This commit is contained in:
parent
9351bf5f33
commit
8581cb4187
5 changed files with 23 additions and 1 deletions
|
@ -307,7 +307,6 @@ myStartupHook = do
|
|||
spawnOnce "flameshot"
|
||||
spawn "picom"
|
||||
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.
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
modules = {
|
||||
desktop = {
|
||||
wireguard.enable = true;
|
||||
kitty.enable = true;
|
||||
dwm.enable = false;
|
||||
xmonad.enable = true;
|
||||
|
|
|
@ -21,5 +21,7 @@
|
|||
./picom
|
||||
# boot
|
||||
./plymouth
|
||||
# vpn
|
||||
./wireguard
|
||||
];
|
||||
}
|
||||
|
|
20
modules/desktop/wireguard/default.nix
Normal file
20
modules/desktop/wireguard/default.nix
Normal 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;
|
||||
};
|
||||
}
|
0
modules/desktop/wireguard/default.nix~
Normal file
0
modules/desktop/wireguard/default.nix~
Normal file
Loading…
Reference in a new issue