added correct minitor and bootloader setup

This commit is contained in:
2026-10-26 10:51:56 +01:00
parent 91c76a9ee8
commit 0d51c9142e
3 changed files with 26 additions and 28 deletions
+4 -5
View File
@@ -10,10 +10,9 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Use the GRUB 2 boot loader. # Use systemd-bootloader
boot.loader.grub.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.grub.device = "/dev/vda"; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.useOSProber = true;
# Use latest kernel. # Use latest kernel.
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-zen4; boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-zen4;
@@ -136,6 +135,6 @@
# and migrated your data accordingly. # and migrated your data accordingly.
# #
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "26.05"; # Did you read the comment? system.stateVersion = "26.11"; # Did you read the comment?
} }
+19 -22
View File
@@ -1,36 +1,33 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’ # Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ { config, lib, pkgs, modulesPath, ... }:
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = [ imports =
(modulesPath + "/profiles/qemu-guest.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" =
device = "/dev/disk/by-uuid/d7ee320a-7eb9-4f7e-bc6f-76c1bc21d863"; { device = "/dev/disk/by-uuid/667f2c84-43dc-43de-a4e8-a1d5079ae4f1";
fsType = "ext4"; fsType = "ext4";
}; };
swapDevices = [ ]; fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5ECD-6EBF";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/d7a5eece-520e-4e6e-9523-467a07c428ef"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }
+3 -1
View File
@@ -57,7 +57,9 @@
settings = { settings = {
monitor = [ monitor = [
"Virtual-1,1920x1080@60,auto,1" "DP-1,1920x1080@143.85,1920x0,1"
"DP-2,1920x1080@119.98,3840x0,1"
"DP-3,1920x1080@119.98,0x0,1"
]; ];
bind = [ bind = [