refactor!: massively overhaul configuration and bring it to the modern

age
This commit is contained in:
Youwen Wu 2024-09-17 23:21:29 -07:00
parent 1310dd7b7a
commit 9a081df74a
Signed by untrusted user: youwen
GPG key ID: 865658ED1FE61EC3
16 changed files with 492 additions and 251 deletions

View file

@ -0,0 +1,53 @@
# 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.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/de53d520-7b49-4353-b88c-b599f8f50fbb";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-1910bfb7-9cc4-4aff-88cb-8644012531d2".device = "/dev/disk/by-uuid/1910bfb7-9cc4-4aff-88cb-8644012531d2";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/C5E5-09F1";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ];
# 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;
}