Regenerated
This commit is contained in:
+55
-18
@@ -222,52 +222,84 @@ in
|
||||
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/boot.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
hostname = config.networking.hostName or "traveldroid";
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Hostname
|
||||
#################################
|
||||
networking.hostName = hostname;
|
||||
|
||||
#################################
|
||||
# Bootloader (UEFI + GRUB)
|
||||
#################################
|
||||
boot.loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot"; # matches your hardware-config
|
||||
canTouchEfiVariables = true; # NixOS writes EFI vars safely
|
||||
efiSysMountPoint = "/boot"; # matches your hardware-configuration
|
||||
};
|
||||
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev"; # correct for UEFI
|
||||
useOSProber = true;
|
||||
device = "nodev"; # safe for UEFI systems
|
||||
useOSProber = true; # detect other OSes if present
|
||||
};
|
||||
|
||||
timeout = 5;
|
||||
};
|
||||
|
||||
#################################
|
||||
# Kernel
|
||||
# Kernel / initrd
|
||||
#################################
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"splash" # Plymouth splash
|
||||
"udev.log_level=3"
|
||||
"rd.systemd.show_status=false"
|
||||
];
|
||||
|
||||
boot.consoleLogLevel = 0;
|
||||
|
||||
#################################
|
||||
# Filesystems support
|
||||
#################################
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
boot.initrd.systemd.enable = true;
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"rtsx_usb_sdmmc"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
#################################
|
||||
# Plymouth (boot splash)
|
||||
# Filesystems
|
||||
#################################
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/811D-0676";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
|
||||
];
|
||||
|
||||
#################################
|
||||
# Plymouth boot splash
|
||||
#################################
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
theme = "rings";
|
||||
|
||||
themePackages = [
|
||||
(pkgs.adi1090x-plymouth-themes.override {
|
||||
selected_themes = [ "rings" ];
|
||||
@@ -276,15 +308,20 @@ in
|
||||
};
|
||||
|
||||
#################################
|
||||
# Initrd (faster + modern)
|
||||
#################################
|
||||
boot.initrd.systemd.enable = true;
|
||||
|
||||
#################################
|
||||
# Microcode (Intel CPU)
|
||||
# CPU microcode
|
||||
#################################
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
#################################
|
||||
# Nix host platform
|
||||
#################################
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
#################################
|
||||
# System state version
|
||||
#################################
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user