2023-07-30 09:23:12 +03:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
2023-09-06 16:10:11 +03:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-07-30 09:23:12 +03:00
|
|
|
|
2024-01-07 14:25:28 +03:00
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"usb-storage"
|
|
|
|
"xhci_pci"
|
|
|
|
"usbhid"
|
|
|
|
"mmc_block"
|
|
|
|
"xhci_hcd"
|
|
|
|
"xhci_plat_hcd"
|
|
|
|
"hid_generic"
|
|
|
|
];
|
2023-07-30 09:23:12 +03:00
|
|
|
boot.initrd.kernelModules = [ ];
|
2024-01-07 14:25:28 +03:00
|
|
|
boot.kernelModules = [ "uhid" ];
|
2023-07-30 09:23:12 +03:00
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
fileSystems."/" = {
|
2024-03-03 10:01:00 +03:00
|
|
|
device = "/dev/disk/by-uuid/4b0a6b8a-a85c-4256-9d83-e46d47e0d017";
|
2023-12-24 08:49:24 +03:00
|
|
|
fsType = "btrfs";
|
2024-03-03 10:01:00 +03:00
|
|
|
options = [ "compress=zstd" "noatime" ];
|
2023-09-06 16:10:11 +03:00
|
|
|
};
|
2023-07-30 09:23:12 +03:00
|
|
|
|
2023-12-24 08:49:24 +03:00
|
|
|
boot.initrd.luks.devices."nixos-root".device =
|
2024-03-03 10:01:00 +03:00
|
|
|
"/dev/disk/by-uuid/528c8aa3-d15d-4b23-bbb5-d21cd3edee4b";
|
2023-07-30 09:23:12 +03:00
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
fileSystems."/boot" = {
|
2024-03-03 10:01:00 +03:00
|
|
|
device = "/dev/disk/by-uuid/A65B-1700";
|
2023-09-06 16:10:11 +03:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-07-30 09:23:12 +03:00
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
swapDevices = [{
|
2024-03-03 10:01:00 +03:00
|
|
|
device = "/dev/disk/by-partuuid/6d6e837c-d63c-4254-afff-88b69787024f";
|
2023-09-06 16:10:11 +03:00
|
|
|
randomEncryption.enable = true;
|
|
|
|
}];
|
2023-08-30 15:10:46 +03:00
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
2023-07-30 09:23:12 +03:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
|
|
|
}
|