2022-07-20 21:00:50 +02: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" "nvme" "usb_storage" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
2025-01-26 19:51:12 +01:00
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
networking.hostName = "iota";
|
2022-07-20 21:00:50 +02:00
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2025-01-26 19:51:12 +01:00
|
|
|
|
{ device = "/dev/disk/by-uuid/d3f36be6-117b-4d3c-ac3d-69ad7f1c0e20";
|
2022-07-20 21:00:50 +02:00
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
2025-01-26 19:51:12 +01:00
|
|
|
|
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";
|
2022-07-20 21:00:50 +02:00
|
|
|
|
fsType = "vfat";
|
2025-01-26 19:51:12 +01:00
|
|
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
2022-07-20 21:00:50 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
2025-01-26 19:51:12 +01:00
|
|
|
|
[ { device = "/dev/disk/by-uuid/076c48e7-018e-49b9-a8b4-a8e49b160d5d"; }
|
2022-07-20 21:00:50 +02: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;
|
2025-01-26 19:51:12 +01:00
|
|
|
|
# networking.interfaces.enp0s20f0u8u4.useDHCP = lib.mkDefault true;
|
2022-07-20 21:00:50 +02:00
|
|
|
|
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
2025-01-26 19:51:12 +01:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2022-07-20 21:00:50 +02:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2022-09-18 18:16:34 +02:00
|
|
|
|
|
2025-01-26 19:51:12 +01:00
|
|
|
|
boot.plymouth = {
|
|
|
|
|
enable = true;
|
2023-01-04 10:39:10 +01:00
|
|
|
|
};
|
2025-01-26 19:51:12 +01:00
|
|
|
|
|
|
|
|
|
# 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";
|
2022-07-20 21:00:50 +02:00
|
|
|
|
}
|