nixos-config/hosts/aarch64-linux/alastor/hardware-configuration.nix

46 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-01-12 15:59:57 +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,
...
}: {
2024-03-18 08:56:51 +01:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2024-01-12 15:59:57 +01:00
2024-03-18 08:56:51 +01:00
boot.initrd.availableKernelModules = ["usb_storage"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
2024-01-12 15:59:57 +01:00
fileSystems."/" = {
2024-03-18 08:56:51 +01:00
device = "/dev/disk/by-uuid/0d3d62cd-ecc8-472c-9d5f-3daf3f1656f1";
fsType = "ext4";
};
2024-01-12 15:59:57 +01:00
fileSystems."/boot" = {
2024-03-18 08:56:51 +01:00
device = "/dev/disk/by-uuid/A2B1-1BF0";
fsType = "vfat";
};
2024-01-12 15:59:57 +01:00
swapDevices = [
{
device = "/var/lib/swapfile";
2024-04-14 17:57:44 +02:00
size = 12 * 1024;
}
];
2024-01-12 15:59:57 +01: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;
2024-03-18 08:56:51 +01:00
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
2024-01-12 15:59:57 +01:00
2024-03-18 08:56:51 +01:00
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
2024-01-12 15:59:57 +01:00
}