70 lines
2.4 KiB
Nix
70 lines
2.4 KiB
Nix
# 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" "nvme" "usb_storage" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
networking.hostName = "iota";
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/d3f36be6-117b-4d3c-ac3d-69ad7f1c0e20";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-68d48bec-28f9-4474-9e56-b650a7689efd".device = "/dev/disk/by-uuid/68d48bec-28f9-4474-9e56-b650a7689efd";
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/77CE-3A6F";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0077" "dmask=0077" ];
|
||
};
|
||
|
||
swapDevices =
|
||
[ { device = "/dev/disk/by-uuid/076c48e7-018e-49b9-a8b4-a8e49b160d5d"; }
|
||
];
|
||
|
||
# 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.enp0s20f0u8u4.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
boot.plymouth = {
|
||
enable = true;
|
||
};
|
||
|
||
# Enable "Silent Boot"
|
||
boot.consoleLogLevel = 0;
|
||
boot.initrd.verbose = false;
|
||
boot.kernelParams = [
|
||
"quiet"
|
||
"splash"
|
||
"boot.shell_on_fail"
|
||
"loglevel=3"
|
||
"rd.systemd.show_status=false"
|
||
"rd.udev.log_level=3"
|
||
"udev.log_priority=3"
|
||
];
|
||
# Hide the OS choice for bootloaders.
|
||
# It's still possible to open the bootloader list by pressing any key
|
||
# It will just not appear on screen unless a key is pressed
|
||
boot.loader.timeout = 0;
|
||
|
||
boot.initrd.luks.devices."luks-212c9297-10d3-4943-8763-0dc86f337edb".device = "/dev/disk/by-uuid/212c9297-10d3-4943-8763-0dc86f337edb";
|
||
}
|