From a69f731cfe5ba198897f6b9e2169d281139b2483 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Tue, 24 Mar 2026 18:22:46 +0100 Subject: [PATCH] postinstall --- hosts/kronos/default.nix | 2 +- hosts/kronos/hardware-configuration.nix | 17 ++++++++++++++++- modules/base.nix | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/hosts/kronos/default.nix b/hosts/kronos/default.nix index a97f6b9..32036ed 100644 --- a/hosts/kronos/default.nix +++ b/hosts/kronos/default.nix @@ -8,7 +8,7 @@ let fullName = "Love"; hostName = "Kronos"; homeDir = "/home/${userName}"; - installDisk = "/dev/disk/by-id/wwn-0x5001b444a9734c0e"; + installDisk = "/dev/disk/by-id/ata-SanDisk_SD8SB8U-256G-1006_173702422853"; in { _module.args = { diff --git a/hosts/kronos/hardware-configuration.nix b/hosts/kronos/hardware-configuration.nix index 52c14b8..1983dbb 100644 --- a/hosts/kronos/hardware-configuration.nix +++ b/hosts/kronos/hardware-configuration.nix @@ -1,3 +1,18 @@ -{ ... }: +# 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, pkgs, modulesPath, ... }: + { + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/modules/base.nix b/modules/base.nix index bb132d3..1167d30 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -96,6 +96,7 @@ unzip wget zsh + killall ]; security.sudo.wheelNeedsPassword = true;