summaryrefslogtreecommitdiff
path: root/hosts/nixedo/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/nixedo/hardware.nix')
-rw-r--r--hosts/nixedo/hardware.nix44
1 files changed, 29 insertions, 15 deletions
diff --git a/hosts/nixedo/hardware.nix b/hosts/nixedo/hardware.nix
index 82d6b9e..9e9df76 100644
--- a/hosts/nixedo/hardware.nix
+++ b/hosts/nixedo/hardware.nix
@@ -1,30 +1,44 @@
# 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")
- ];
+ config,
+ lib,
+ modulesPath,
+ ...
+}:
+{
+ imports = [ (modulesPath + "/profiles/all-hardware.nix") ];
- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.availableKernelModules = [
+ "xhci_pci"
+ "ahci"
+ "nvme"
+ "usbcore"
+ "usb_storage"
+ "sd_mod"
+ "rtsx_pci_sdmmc"
+ "btrfs"
+ ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/5701475d-62a8-4db1-afa6-68ed94c62fc5";
- fsType = "btrfs";
- };
+ fileSystems."/" = {
+ device = "/dev/disk/by-uuid/5701475d-62a8-4db1-afa6-68ed94c62fc5";
+ fsType = "btrfs";
+ };
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/96f26456-b3da-4e96-b922-8ca24d842d60";
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/9FFE-8996";
- fsType = "vfat";
- options = [ "fmask=0022" "dmask=0022" ];
- };
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/9FFE-8996";
+ fsType = "vfat";
+ options = [
+ "fmask=0022"
+ "dmask=0022"
+ ];
+ };
swapDevices = [ ];