mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-28 17:38:30 +02:00
configured networks
vpn isn't configured yet, for cable I don't know
This commit is contained in:
parent
f85c5de8b7
commit
8f8ba0d250
6 changed files with 61 additions and 13 deletions
28
hosts/thinkpad/modules/networks/default.nix
Normal file
28
hosts/thinkpad/modules/networks/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
imports = [ ./uni.nix ];
|
||||
|
||||
sops.secrets."wireless-env" = {};
|
||||
networking = {
|
||||
hostName = "thinkpad";
|
||||
firewall = {
|
||||
allowedUDPPorts = [ 51820 ]; # used for wireguard
|
||||
checkReversePath = false;
|
||||
};
|
||||
wireless = {
|
||||
enable = true;
|
||||
userControlled.enable = true;
|
||||
environmentFile = config.sops.secrets."wireless-env".path;
|
||||
networks = {
|
||||
"@HOME_SSID@" = {
|
||||
psk = "@HOME_PSK@";
|
||||
authProtocols = [ "WPA-PSK" ];
|
||||
};
|
||||
"@DORM_SSID@" = {
|
||||
psk = "@DORM_PSK@";
|
||||
authProtocols = [ "WPA-PSK" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue