configure laptop (thunderbolt, ip, sleep, wol)

This commit is contained in:
Kopatz
2023-11-20 08:56:54 +01:00
parent b584dafa8c
commit 39c1759d6a
9 changed files with 35 additions and 7 deletions

View File

@@ -1,4 +1,7 @@
{
interface = "enp0s31f6";
interface = "enp10s0u1u2";
ipv4 = "192.168.0.4";
dns = "192.168.0.6";
wm = "gnome-shell";
}

View File

@@ -12,7 +12,6 @@ in{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./static-ip.nix
];
# Bootloader.

View File

@@ -1,28 +0,0 @@
{ config, vars, ...}:
let
ip = vars.ipv4;
interface = vars.interface;
in
{
networking = {
defaultGateway = "192.168.0.1";
useDHCP = false;
firewall = {
enable = true;
allowedUDPPorts = [ 5000 ];
};
nameservers = [
"127.0.0.1"
"1.1.1.1"
];
interfaces = {
${interface} = {
name = "eth0";
ipv4.addresses = [{
address = ip;
prefixLength = 24;
}];
};
};
};
}

View File

@@ -1,5 +1,7 @@
{
interface = "enp0s31f6";
ipv4 = "192.168.0.6";
dns = "127.0.0.1";
wireguardIp = "192.168.2.1";
wm = "startplasma-x11";
}