{ config, pkgs, ... }: { imports = [ ./hardware-configuration.nix ]; hardware = { graphics = { extraPackages = with pkgs; [ libvpl libvdpau-va-gl sof-firmware vpl-gpu-rt ]; }; bluetooth.settings.General.Name = "saarni"; }; networking = { hostName = "saarni"; }; systemd = { services."enable-wifi-on-boot" = { description = "Enable wifi on boot"; wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = "${pkgs.util-linux}/bin/rfkill unblock all"; Type = "oneshot"; }; }; network = { networks = { "10-lan" = { matchConfig = { Name = "enps0"; }; linkConfig = { Multicast = true; }; networkConfig = { DHCP = true; IPv6AcceptRA = true; MulticastDNS = true; LinkLocalAddressing = "ipv6"; DNSSEC = true; UseDomains = true; }; dhcpV4Config = { RouteMetric = 20; UseDNS = true; UseMTU = true; }; ipv6AcceptRAConfig = { UseMTU = true; }; }; "11-wlan" = { matchConfig = { MACAddress = "64:d6:9a:9e:06:60"; }; linkConfig = { Multicast = true; }; networkConfig = { DHCP = true; IPv6AcceptRA = true; MulticastDNS = true; LinkLocalAddressing = "ipv6"; DNSSEC = true; UseDomains = true; }; dhcpV4Config = { RouteMetric = 100; UseDNS = true; UseMTU = true; SendHostname = true; }; dhcpV6Config = { WithoutRA = "solicit"; }; ipv6AcceptRAConfig = { UseMTU = true; }; }; }; }; }; environment = { sessionVariables = { }; }; services = { godns = { enable = true; loadCredential = [ "login_token:${config.age.secrets.duckdns.path}" ]; settings = { domains = [ { domain_name = "www.duckdns.org"; sub_domains = [ "saarni" ]; } ]; login_token_file = "$CREDENTIALS_DIRECTORY/login_token"; ip_interface = "wlan0"; interval = 300; ip_type = "IPv6"; provider = "DuckDNS"; }; }; tlp = { enable = true; settings = { CPU_PERF_POLICY_ON_AC = "performance"; CPU_PERF_POLICY_ON_BAT = "power"; CPU_SCALING_GOVERNOR_ON_AC = "performance"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; START_CHARGE_THRESH_BAT0 = 40; STOP_CHARGE_TRESH_BAT0 = 20; }; }; upower = { enable = true; criticalPowerAction = "Hibernate"; }; thermald.enable = true; }; system.stateVersion = "24.05"; }