KaitoianOS/hosts/shiroko/hardware-configuration.nix

58 lines
1.7 KiB
Nix
Raw Normal View History

2024-09-03 18:05:41 -07:00
# 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") ];
2024-09-03 18:05:41 -07:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2024-09-03 18:05:41 -07:00
fileSystems."/" = {
2024-09-18 10:28:09 -07:00
device = "/dev/disk/by-uuid/0b6e9715-5ce6-49d1-98f9-ea0a5d4237f9";
2024-09-03 18:05:41 -07:00
fsType = "ext4";
};
2024-09-18 10:28:09 -07:00
boot.initrd.luks.devices."luks-fef5cb12-a610-4701-9215-717caf0b27ad".device = "/dev/disk/by-uuid/fef5cb12-a610-4701-9215-717caf0b27ad";
2024-09-03 18:05:41 -07:00
fileSystems."/boot" = {
2024-09-18 10:28:09 -07:00
device = "/dev/disk/by-uuid/A19B-FD09";
2024-09-03 18:05:41 -07:00
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
2024-09-03 18:05:41 -07:00
};
2024-09-18 10:28:09 -07:00
swapDevices = [
{
device = "/dev/disk/by-uuid/7beb9844-e0c3-44dc-998f-ee42e36b9543";
}
];
2024-09-03 18:05:41 -07:00
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp89s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}