nixvimConfig/hosts/muffinman/hardware-configuration.nix

54 lines
1.9 KiB
Nix
Raw Normal View History

# 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-07-12 11:18:25 +02:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/8163a747-43d8-41e1-8514-69c42d37a165";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-7c776e51-99b0-402e-9254-c5310b5bfa17".device = "/dev/disk/by-uuid/7c776e51-99b0-402e-9254-c5310b5bfa17";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E43C-FE83";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
2024-07-13 18:59:36 +02:00
# fileSystems."/data/media" =
# { device = "/dev/disk/by-uuid/203764d8-7e5d-4e61-8467-46dab635ceff";
# fsType = "ext4";
# };
#
# fileSystems."/data/personal" =
# { device = "/dev/disk/by-uuid/4fa1ebd4-eeee-44ab-a77b-df58edcf1813";
# fsType = "ext4";
# };
2024-07-12 11:18:25 +02:00
swapDevices = [
{ device = "/.swapfile"; size = 30518; }
];
# 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.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.eno2.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}