From 79de3e1fc25ccdfba41804ff539b7f3dfe30a380 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Sat, 18 Jan 2025 18:27:41 +0100 Subject: [PATCH] fixes and improvements --- nixos/flake.nix | 2 +- nixos/hardware/tongfang.nix | 2 +- nixos/symlink.sh | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/nixos/flake.nix b/nixos/flake.nix index 4943433..ef083c5 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -89,7 +89,7 @@ # ./modules/theme.nix # ./modules/time.nix # ./modules/usb.nix - # ./modules/users.nix + ./modules/users.nix # ./modules/utils.nix # ./modules/virtualisation.nix # ./modules/vpn.nix diff --git a/nixos/hardware/tongfang.nix b/nixos/hardware/tongfang.nix index f10dad2..7e70b06 100644 --- a/nixos/hardware/tongfang.nix +++ b/nixos/hardware/tongfang.nix @@ -11,7 +11,7 @@ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.extraModulePackages = [ yt6801 ]; fileSystems."/" = { device = "/dev/disk/by-uuid/c7cf28c3-5744-45cc-8a81-456d24e44b7a"; diff --git a/nixos/symlink.sh b/nixos/symlink.sh index 86740b8..1863936 100755 --- a/nixos/symlink.sh +++ b/nixos/symlink.sh @@ -8,10 +8,6 @@ if [ -L /etc/nixos ] && [ -e /etc/nixos ]; then exit 0 fi -# Copy hardware configuration -cp /etc/nixos/hardware-configuration.nix "$nixos_home" -echo "Copied generated hardware configuration into $nixos_home" - # Backup current /etc/nixos if it exists if [ -e /etc/nixos ]; then mv /etc/nixos /etc/nixos.bak