nixos/scrappy/hardware-configuration.nix

53 lines
1.9 KiB
Nix
Raw Normal View History

2024-10-11 19:14:23 -06: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")
];
boot.initrd.systemd.enable = true;
2024-10-11 19:14:23 -06:00
boot.initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# boot.initrd.luks.devices."enc_source" = {
# device = "/dev/disk/by-uuid/80c9bd6b-5730-4daf-8f7e-ab13a3875921";
# keyFile = "/root/keyfile";
# crypttabExtraOpts = ["nofail"];
# };
2024-10-11 19:14:23 -06:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/97472fe9-155a-4081-9c30-7515d261a184";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/CF4D-BF80";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/home/scrappy/source" = {
device = "/dev/mapper/enc_source";
fsType = "ext4";
options = [ "nofail" ]; # Allow the boot to continue even if the mount fails
};
2024-10-11 19:14:23 -06:00
swapDevices =
[ { device = "/dev/disk/by-uuid/2698a2f4-fa59-4c1b-9d89-c3c802c78404"; }
];
# 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.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}