Skip to content

Commit 27781f9

Browse files
committed
flakeup and wireguard
1 parent b818c5d commit 27781f9

4 files changed

Lines changed: 47 additions & 24 deletions

File tree

flake.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/hosts/void/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# Security
2525
den.aspects.sops
2626
den.aspects.pcscd
27+
den.aspects.wireguard
2728
# den.aspects.ly
2829
den.aspects.noctalia-greeter
2930
den.aspects.polkit

modules/security/wireguard.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ den, ... }:
2+
{
3+
den.aspects.wireguard.nixos =
4+
{ pkgs, ... }:
5+
{
6+
# Ensure the wireguard kernel module is available. No interface is
7+
# auto-configured: you bring it up/tear it down on the fly with
8+
# `wg-quick up <config>` / `wg-quick down <config>`, pointing at any
9+
# Proton/WireGuard .conf you like. It never starts automatically.
10+
boot.kernelModules = [ "wireguard" ];
11+
12+
environment.systemPackages = with pkgs; [
13+
wireguard-tools
14+
];
15+
16+
environment.shellAliases = {
17+
wg-up = "sudo wg-quick up";
18+
wg-down = "sudo wg-quick down";
19+
};
20+
};
21+
}

modules/system/packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
via
5454
wget
5555
whois
56+
wireguard-tools
5657
xrandr
5758
xwayland
5859
yubico-pam

0 commit comments

Comments
 (0)