new network name for common wifi

This commit is contained in:
Haak Saxberg 2023-11-04 16:40:01 -07:00
parent 05519bc412
commit 02a2628a77

View file

@ -1,5 +1,6 @@
let let
nasIp = "192.168.1.168"; nasIp = "192.168.1.168";
serverIp = "192.168.1.44";
in in
{ {
network = { network = {
@ -17,9 +18,9 @@ in
<home-manager/nixos> <home-manager/nixos>
]; ];
networking.wireless.networks."ShamblingHalfling 5Ghz-1" = { networking.wireless.networks."lbheim" = {
pskRaw = ( pskRaw = (
(import ../system/framework/keys.nix).wifi."ShamblingHalfling 5Ghz-1".pskRaw (import ../system/framework/keys.nix).wifi."lbheim".pskRaw
); );
}; };
@ -29,7 +30,7 @@ in
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
home-manager.users.haak = (import ../home/commandline.nix); home-manager.users.haak = (import ../home/commandline.nix);
# Configure the root account # Configure the root account so that i can get in there from the framework laptop
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
(import ../system/framework/keys.nix).ssh.public (import ../system/framework/keys.nix).ssh.public
]; ];
@ -62,7 +63,7 @@ in
server = server =
{ nodes, ... }: { nodes, ... }:
{ {
deployment.targetHost = "192.168.1.65"; deployment.targetHost = serverIp;
imports = [ ../system/xps11/configuration.nix ]; imports = [ ../system/xps11/configuration.nix ];
fileSystems."/storage" = { fileSystems."/storage" = {
@ -93,8 +94,6 @@ in
allowedUDPPorts = [ 51820 ]; # Clients and peers can use the same port, see listenport allowedUDPPorts = [ 51820 ]; # Clients and peers can use the same port, see listenport
}; };
deployment.keys.wireguard.text = builtins.readFile ../../secrets/wireguard/svalbard;
# Enable WireGuard # Enable WireGuard
networking.wg-quick.interfaces = networking.wg-quick.interfaces =
let let