aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-20 11:02:46 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-20 11:02:46 +0200
commiteace74658ed1ae25fe092aef5e742bd7ac7cb2e8 (patch)
tree769f245e96bec33ea24b4f2f79d8ca82dd9a2f2b
parentce04045cccd723597c67e45d435aad9c96f6800f (diff)
parent2db7a855aebaed5514fba6547fc66910ad88e0d4 (diff)
Merge branch 'main' of cgit:/srv/git/NixOS-config
-rw-r--r--hosts/herra/drivers.nix14
-rw-r--r--hosts/herra/file-system.nix9
-rw-r--r--[-rwxr-xr-x]hosts/herra/hardware-configuration.nix26
3 files changed, 29 insertions, 20 deletions
diff --git a/hosts/herra/drivers.nix b/hosts/herra/drivers.nix
index 53971a7..e731695 100644
--- a/hosts/herra/drivers.nix
+++ b/hosts/herra/drivers.nix
@@ -1,4 +1,4 @@
-{...}: {
+{pkgs, ...}: {
services.xserver.videoDrivers = ["amdgpu"]; # AMD GPU drivers
boot.kernel.sysctl."kernel.sched_rt_runtime_us" = -1; # Realtime audio
@@ -7,24 +7,22 @@
enable = true;
enable32Bit = true; # CRITICAL for Steam/Proton
extraPackages = with pkgs; [
- amdvlk
rocmPackages.clr.icd # OpenCL
];
extraPackages32 = with pkgs; [
- driversi686Linux.amdvlk
];
};
cpu.intel.updateMicrocode = true;
enableRedistributableFirmware = true;
-
-boot.extraModulePackages = with config.boot.kernelPackages; [
- v4l2loopback
-];
+};
+#TODO: FIX
+#boot.extraModulePackages = with boot.kernelPackages; [
+# v4l2loopback
+#];
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Virtual Camera" exclusive_caps=1
'';
- };
}
diff --git a/hosts/herra/file-system.nix b/hosts/herra/file-system.nix
index 71a77fd..2e47cf2 100644
--- a/hosts/herra/file-system.nix
+++ b/hosts/herra/file-system.nix
@@ -1,7 +1,6 @@
{...}: {
fileSystems."/nix" = {
- device = "/dev/disk/by-label/nixstore";
- fsType = "btrfs";
- options = [ "subvol=@nix" "compress=zstd:3" "noatime" ];
-};
-} \ No newline at end of file
+ options = [ "subvol=@nix" "compress=zstd:3" "noatime" ];
+ neededForBoot = true;
+ };
+}
diff --git a/hosts/herra/hardware-configuration.nix b/hosts/herra/hardware-configuration.nix
index 0dc8341..578ae01 100755..100644
--- a/hosts/herra/hardware-configuration.nix
+++ b/hosts/herra/hardware-configuration.nix
@@ -1,29 +1,41 @@
-# 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
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
+ imports =
+ [ (modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
+ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
- { device = "/dev/disk/by-uuid/f62daee8-ba51-478c-97db-c8b96c12043e";
- fsType = "ext4";
+ { device = "/dev/disk/by-uuid/229a13d8-159e-40b6-915a-606c32e3ca79";
+ fsType = "btrfs";
+ options = [ "subvol=@" ];
+ };
+
+ fileSystems."/home" =
+ { device = "/dev/disk/by-uuid/229a13d8-159e-40b6-915a-606c32e3ca79";
+ fsType = "btrfs";
+ options = [ "subvol=@home" ];
};
fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/22BE-C329";
+ { device = "/dev/disk/by-uuid/03F6-F782";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
+ fileSystems."/nix" =
+ { device = "/dev/disk/by-uuid/28fb6b6d-fb64-4a42-80af-88ce7b081258";
+ fsType = "btrfs";
+ };
+
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";