2022-08-21 22:53:04 +00: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 =
|
2023-01-28 21:30:37 +00:00
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
2022-08-21 22:53:04 +00:00
|
|
|
|
];
|
|
|
|
|
|
2023-01-28 21:30:37 +00:00
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "uas" ];
|
2022-08-21 22:53:04 +00:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
2023-01-28 21:30:37 +00:00
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
boot.supportedFilesystems = [ ];
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
2023-01-28 21:30:37 +00:00
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
|
device = "nodev";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = false;
|
|
|
|
|
boot.loader.generic-extlinux-compatible.enable = false;
|
|
|
|
|
boot.loader.timeout = 0;
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."cryptroot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/5edec8af-5f84-4d9f-9755-8abbb55e00af";
|
|
|
|
|
keyFile = "/dev/disk/by-id/usb-SanDisk_Cruzer_Blade_04020116120721075123-0:0-part1";
|
|
|
|
|
fallbackToPassword = true;
|
|
|
|
|
bypassWorkqueues = true;
|
2022-08-21 22:53:04 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2023-01-28 21:30:37 +00:00
|
|
|
|
{ device = "/dev/disk/by-label/root";
|
|
|
|
|
fsType = "ext4";
|
2022-08-21 22:53:04 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2023-01-28 21:30:37 +00:00
|
|
|
|
{ device = "/dev/disk/by-label/boot";
|
2022-08-21 22:53:04 +00:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
2023-01-28 21:30:37 +00:00
|
|
|
|
[ { device = "/dev/disk/by-label/swap"; }
|
|
|
|
|
];
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
2023-01-28 21:30:37 +00:00
|
|
|
|
networking.interfaces.enabcm6e4ei0.useDHCP = true;
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
2023-01-28 21:30:37 +00:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
2022-08-21 22:53:04 +00:00
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
|
|
|
}
|