nix-configs/nixos/hosts/homeserver/hardware-configuration.nix

54 lines
1 KiB
Nix
Raw Normal View History

2025-06-10 21:45:02 +01: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.availableKernelModules = [
"xhci_pci"
"usb_storage"
"usbhid"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/d82c7bbb-e496-414c-a96b-4b4ca457bdfd";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3B58-1BF7";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
networking.interfaces = {
end0.useDHCP = lib.mkDefault true;
enp2s0u2.ipv4.addresses = [
{
address = "172.16.0.2";
prefixLength = 24;
}
];
};
2025-06-10 21:45:02 +01:00
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}