separate configs, LTE modem, wireguard, zsh
This commit is contained in:
parent
b73d0e9dbe
commit
8ce905a427
11 changed files with 360 additions and 184 deletions
16
modules/wireguard.nix
Normal file
16
modules/wireguard.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# WireGuard VPN configuration
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
wireguard-tools
|
||||
];
|
||||
|
||||
# WireGuard interface
|
||||
networking.wg-quick.interfaces = {
|
||||
wg0 = {
|
||||
configFile = "/etc/wireguard/wg0.conf"; # TODO: Secret Manager. TODO: Add SSH, GPG as well to secret manager
|
||||
autostart = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue