Add wake online

This commit is contained in:
2025-12-12 04:42:20 +01:00
parent 87993b83fe
commit 918d42ff71
8 changed files with 74 additions and 11 deletions

View File

@@ -3,6 +3,9 @@
pkgs,
...
}:
let
lanIface = "enp5s0";
in
{
imports = [
#../ai.nix
@@ -10,10 +13,12 @@
../k8s.nix
../libvirt.nix
../openfortivpn.nix
../options.nix
../packages.nix
../sops-desktop.nix
../ssh.nix
../sshd.nix
../sudo-nopasswd.nix
../wakeonlan.nix
### Import GUI modules
../desktop/code.nix
@@ -31,6 +36,8 @@
../desktop/nvidia.nix
];
my.lanInterface = "enp5s0";
sops = {
secrets = {
"wireguard_home/publickey" = { };
@@ -44,7 +51,7 @@
networking = {
#useNetworkd = true;
#useHostResolvConf = false;
interfaces.enp5s0 = {
interfaces.${config.my.lanInterface} = {
ipv4.addresses = [
{
address = "192.168.0.2";
@@ -54,7 +61,7 @@
};
defaultGateway = {
address = "192.168.0.254";
interface = "enp5s0";
interface = "${config.my.lanInterface}";
};
nameservers = [
#"9.9.9.9"