nixos-configs/nixosConfigurations/ronja-pc/hardware.nix

49 lines
946 B
Nix
Raw Normal View History

2025-09-14 14:12:14 +02:00
{ lib, ... }:
2025-05-01 15:14:32 +02:00
{
2025-04-13 21:40:52 +02:00
boot = {
2025-09-14 14:01:42 +02:00
supportedFilesystems = [ "btrfs" ];
initrd.supportedFilesystems = [ "btrfs" ];
2025-05-01 15:14:32 +02:00
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
2025-04-13 21:40:52 +02:00
initrd = {
2025-05-01 15:14:32 +02:00
availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [ ];
2025-04-13 21:40:52 +02:00
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/27eccf93-a79f-4fcb-8588-ec55d913508f";
fsType = "btrfs";
2025-05-01 15:14:32 +02:00
options = [ "subvol=@" ];
2025-04-13 21:40:52 +02:00
};
"/boot" = {
device = "/dev/disk/by-uuid/85D4-43FC";
fsType = "vfat";
2025-05-01 15:14:32 +02:00
options = [
"fmask=0077"
"dmask=0077"
];
2025-04-13 21:40:52 +02:00
};
};
swapDevices = [
2025-05-01 15:14:32 +02:00
{ device = "/dev/disk/by-uuid/bf9d19fb-499b-4bfb-b67d-131fa5bf8259"; }
2025-04-13 21:40:52 +02:00
];
2025-09-14 14:12:14 +02:00
hardware.bluetooth.enable = true;
networking = {
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
};
2025-04-13 21:40:52 +02:00
}