From 65174b4b5c05bb143e6681a4cbcd0a95f04987e2 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Thu, 18 Jul 2024 23:39:42 -0700 Subject: Begin modularization! --- hosts/copenhagen/hardware-configuration.nix | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 hosts/copenhagen/hardware-configuration.nix (limited to 'hosts/copenhagen/hardware-configuration.nix') diff --git a/hosts/copenhagen/hardware-configuration.nix b/hosts/copenhagen/hardware-configuration.nix new file mode 100644 index 0000000..be9ad1c --- /dev/null +++ b/hosts/copenhagen/hardware-configuration.nix @@ -0,0 +1,46 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + # boot = { + # loader.grub = { + # enable = true; + + # efiSupport = true; + # efiInstallAsRemovable = true; + # mirroredBoots = [ + # { devices = [ "nodev" ]; path = "/boot"; } + # ]; + # }; + + # initrd = { + # availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + # kernelModules = [ ]; + # }; + + # kernelModules = [ "kvm-amd" ]; + # extraModulePackages = [ ]; + + # supportedFilesystems = [ "ntfs" ]; + # }; + + # fileSystems = { + # "/" = { fsType = "zfs"; device = "zpool/root"; }; + # "/home" = { fsType = "zfs"; device = "zpool/home"; }; + # "/persist" = { fsType = "zfs"; device = "zpool/persist"; }; + # "/nix" = { fsType = "zfs"; device = "zpool/nix"; }; + + # "/boot" = { fsType = "vfat"; device = "/dev/disk/by-uuid/12CE-A600"; }; + + # "/mnt/4tb" = { fsType = "ext4"; device = "/dev/disk/by-label/4tb"; }; + # "/mnt/ssd" = { fsType = "ext4"; device = "/dev/disk/by-label/ssd-256"; }; + # }; + + # swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + # hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.2.3