configure laptop (thunderbolt, ip, sleep, wol)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
{
|
||||
interface = "enp0s31f6";
|
||||
interface = "enp10s0u1u2";
|
||||
ipv4 = "192.168.0.4";
|
||||
dns = "192.168.0.6";
|
||||
wm = "gnome-shell";
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ in{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./static-ip.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
||||
@@ -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;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
{
|
||||
interface = "enp0s31f6";
|
||||
ipv4 = "192.168.0.6";
|
||||
dns = "127.0.0.1";
|
||||
wireguardIp = "192.168.2.1";
|
||||
wm = "startplasma-x11";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user