From 8b12178bfc562a06cbbae6d7d8de94015b417c81 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Sat, 14 Jun 2025 17:21:08 +0530 Subject: [PATCH] hosts: okina: update disk configuration Signed-off-by: Amneesh Singh --- hosts/okina/boot.nix | 5 +++-- hosts/okina/hardware.nix | 16 ++++++++-------- hosts/okina/services.nix | 2 +- hosts/okina/stuff.nix | 2 +- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/hosts/okina/boot.nix b/hosts/okina/boot.nix index 5624c2e..63b9040 100644 --- a/hosts/okina/boot.nix +++ b/hosts/okina/boot.nix @@ -7,15 +7,16 @@ availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; kernelModules = [ ]; }; - kernelParams = [ "i915.force_probe=56a1" "resume_offset=11287312" ]; + kernelParams = [ "i915.force_probe=56a1" ]; # kernelModules = [ "kvm-intel" "i2c-dev" "ddcci_backlight" ]; kernelModules = [ "kvm-intel" "i2c-dev" ]; # extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ddcci-driver ]; extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ]; blacklistedKernelModules = [ "r8169" ]; + extraModprobeConfig = '' options snd-intel-dspcfg dsp_driver=1 ''; - resumeDevice = "/dev/disk/by-uuid/5679b901-3a70-4422-81f5-af91f287500b"; + resumeDevice = "/dev/disk/by-uuid/3770e3bd-a200-4e36-b3a5-4963d13865f9"; loader = { efi = { diff --git a/hosts/okina/hardware.nix b/hosts/okina/hardware.nix index 5de296d..142ab27 100644 --- a/hosts/okina/hardware.nix +++ b/hosts/okina/hardware.nix @@ -25,13 +25,12 @@ fsType = "ext4"; }; -/* fileSystems."/media/real" = + fileSystems."/media/real" = { device = "/dev/disk/by-uuid/8086be20-c770-46be-bd8f-5bd2d7735c7d"; fsType = "btrfs"; options = [ "compress-force=zstd:3" ]; }; - */ /* fileSystems."/media/ntfs" = { @@ -47,7 +46,7 @@ }; swapDevices = [ - { device = "/var/swap"; size = 32768; } + { device = "/dev/disk/by-uuid/3770e3bd-a200-4e36-b3a5-4963d13865f9"; } ]; powerManagement = { @@ -56,17 +55,18 @@ }; hardware = { + steam-hardware.enable = true; bluetooth.enable = true; cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - opengl = { - driSupport32Bit = true; + graphics = { + enable32Bit = true; enable = true; - package = pkgs.mesa.drivers; - package32 = pkgs.pkgsi686Linux.mesa.drivers; + package = pkgs.mesa; + package32 = pkgs.pkgsi686Linux.mesa; extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime - onevpl-intel-gpu + vpl-gpu-rt ]; }; }; diff --git a/hosts/okina/services.nix b/hosts/okina/services.nix index 03ac6b9..3997ee4 100644 --- a/hosts/okina/services.nix +++ b/hosts/okina/services.nix @@ -15,7 +15,7 @@ }; avahi = lib.mkIf config.services.printing.enable { enable = true; - nssmdns = true; + nssmdns4 = true; openFirewall = true; }; }; diff --git a/hosts/okina/stuff.nix b/hosts/okina/stuff.nix index 0033b1f..7a0105e 100644 --- a/hosts/okina/stuff.nix +++ b/hosts/okina/stuff.nix @@ -26,7 +26,7 @@ isNormalUser = true; shell = pkgs.zsh; home = "/home/natto"; - extraGroups = [ "wheel" "adbusers" "video" "libvirtd" "docker" "networkmanager" "dialout" ]; + extraGroups = [ "wheel" "adbusers" "video" "libvirtd" "docker" "networkmanager" "dialout" "pipewire" ]; }; virtualisation = {