From c45e19a8ee17b2f78c46154e2c90ae7932f23dab Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Sat, 13 Dec 2025 20:29:37 +0200 Subject: Update the pihlaja kernel for amd --- home/default.nix | 3 +-- hosts/kataja/default.nix | 4 ---- hosts/kataja/hardware-configuration.nix | 4 +--- hosts/pihlaja/default.nix | 4 ---- hosts/pihlaja/hardware-configuration.nix | 8 +++----- hosts/saarni/default.nix | 4 ---- hosts/saarni/hardware-configuration.nix | 3 --- roles/shared.nix | 8 +++++++- 8 files changed, 12 insertions(+), 26 deletions(-) diff --git a/home/default.nix b/home/default.nix index 6cd03ee..cb843c9 100644 --- a/home/default.nix +++ b/home/default.nix @@ -382,14 +382,13 @@ in packages = with pkgs; [ # tui tools bluetui # bluetooth management - chawan # browser, currently crashes + chawan # browser clipse # clipboard management impala # iwd terminal ui lux # youtube-downloader unstable.nom # rss reader rmpc # tui for mpd rtorrent # torrent - starship # shell aid systemctl-tui tenere # llm tui ticker # stock ticker diff --git a/hosts/kataja/default.nix b/hosts/kataja/default.nix index 840b224..9818aa7 100644 --- a/hosts/kataja/default.nix +++ b/hosts/kataja/default.nix @@ -1,7 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - { config, pkgs, ... }: { diff --git a/hosts/kataja/hardware-configuration.nix b/hosts/kataja/hardware-configuration.nix index db1602b..cc56876 100644 --- a/hosts/kataja/hardware-configuration.nix +++ b/hosts/kataja/hardware-configuration.nix @@ -1,6 +1,3 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. { config, lib, @@ -38,6 +35,7 @@ "transparent_hugepage=always" ]; kernelModules = [ + "iwlwifi" "k10temp" "kvm-amd" "snd_hda_intel" diff --git a/hosts/pihlaja/default.nix b/hosts/pihlaja/default.nix index 214091f..54a7efd 100644 --- a/hosts/pihlaja/default.nix +++ b/hosts/pihlaja/default.nix @@ -1,7 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - { config, pkgs, ... }: { diff --git a/hosts/pihlaja/hardware-configuration.nix b/hosts/pihlaja/hardware-configuration.nix index 53db431..d389063 100644 --- a/hosts/pihlaja/hardware-configuration.nix +++ b/hosts/pihlaja/hardware-configuration.nix @@ -1,6 +1,3 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. { config, lib, @@ -13,8 +10,10 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { - kernelPackages = pkgs.linuxPackages; + kernelPackages = pkgs.linuxPackages_zen; kernelParams = [ + "amdgpu.modeset=1" + "default_hugepagesz=2M" "mitigations=off" "nospectre_v2" "transparent_hugepage=always" @@ -27,7 +26,6 @@ "ahci" "cdc_acm" "iwldvm" - "iwlwifi" "nvme" "sd_mod" "usb_storage" diff --git a/hosts/saarni/default.nix b/hosts/saarni/default.nix index bbd5305..b614131 100644 --- a/hosts/saarni/default.nix +++ b/hosts/saarni/default.nix @@ -1,7 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - { config, pkgs, ... }: { diff --git a/hosts/saarni/hardware-configuration.nix b/hosts/saarni/hardware-configuration.nix index eac5532..27dd94a 100644 --- a/hosts/saarni/hardware-configuration.nix +++ b/hosts/saarni/hardware-configuration.nix @@ -1,6 +1,3 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. { config, lib, diff --git a/roles/shared.nix b/roles/shared.nix index bdf7639..7e4a5eb 100644 --- a/roles/shared.nix +++ b/roles/shared.nix @@ -160,8 +160,12 @@ enable = true; settings = { Network = { + NameResolvingService = "systemd"; EnableIPv6 = true; }; + Settings = { + AutoConnect = true; + }; }; }; useNetworkd = true; @@ -283,14 +287,16 @@ "bluetooth" "input" "lp" + "netdev" "network" "plugdev" "render" + "render" "systemd-journal" + "users" "video" "wheel" "wireshark" - "render" ]; ignoreShellProgramCheck = true; packages = with pkgs; [ -- cgit v1.2.3-70-g09d2