nixos-config/hosts/ytnix/hardware-configuration.nix

87 lines
2.3 KiB
Nix
Raw Permalink Normal View History

2024-11-22 00:58:04 -05: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.
{
2024-12-13 11:28:27 -05:00
config,
lib,
...
2024-12-19 02:32:58 -05:00
}:
{
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2024-11-22 00:58:04 -05:00
2024-12-13 11:28:27 -05:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/17870658-6118-46af-837f-70c9175e09c3";
fsType = "btrfs";
2024-12-19 02:32:58 -05:00
options = [
"subvol=root"
"compress=zstd"
];
2024-12-13 11:28:27 -05:00
};
2024-11-22 00:58:04 -05:00
2024-12-19 02:32:58 -05:00
boot.initrd.luks.devices."cryptroot".device =
"/dev/disk/by-uuid/c6098a16-c8a6-4a97-8648-6f46ca919d13";
2024-11-22 00:58:04 -05:00
2024-12-13 11:28:27 -05:00
fileSystems."/home" = {
device = "/dev/disk/by-uuid/17870658-6118-46af-837f-70c9175e09c3";
fsType = "btrfs";
2024-12-19 02:32:58 -05:00
options = [
"subvol=home"
"compress=zstd"
];
2024-12-13 11:28:27 -05:00
};
2024-11-22 00:58:04 -05:00
2024-12-13 11:28:27 -05:00
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/17870658-6118-46af-837f-70c9175e09c3";
fsType = "btrfs";
2024-12-19 02:32:58 -05:00
options = [
"subvol=nix"
"compress=zstd"
"noatime"
];
2024-12-13 11:28:27 -05:00
};
2024-11-22 19:18:02 -05:00
2024-12-13 11:28:27 -05:00
fileSystems."/swap" = {
device = "/dev/disk/by-uuid/17870658-6118-46af-837f-70c9175e09c3";
fsType = "btrfs";
2024-12-19 02:32:58 -05:00
options = [ "subvol=swap" ];
2024-12-13 11:28:27 -05:00
};
2024-11-22 00:58:04 -05:00
2024-12-13 11:28:27 -05:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/29B7-F46D";
fsType = "vfat";
2024-12-19 02:32:58 -05:00
options = [
"fmask=0022"
"dmask=0022"
];
2024-12-13 11:28:27 -05:00
};
2024-11-22 00:58:04 -05:00
2024-12-13 11:28:27 -05:00
swapDevices = [
{
device = "/swap/swapfile";
}
];
2024-11-22 19:18:02 -05:00
boot.resumeDevice = "/dev/disk/by-uuid/17870658-6118-46af-837f-70c9175e09c3";
2024-12-19 02:32:58 -05:00
boot.kernelParams = [ "resume_offset=53224704" ];
2024-11-22 00:58:04 -05: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.enp1s0.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;
}