move boot config into cfg/hardware.nix
This commit is contained in:
@@ -1,23 +1,59 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# this file originates from ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# but has been heavily modified
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
# TODO colin: this was autogenerated. what's it do?
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
|
# XXX colin: these four statements were autogenerated and placed here: why?
|
||||||
boot.initrd.kernelModules = [ ];
|
# boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
|
||||||
boot.kernelModules = [ ];
|
# boot.initrd.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
# boot.kernelModules = [ ];
|
||||||
|
# boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
# XXX colin: moved to fs-configuration.nix
|
# NixOS defaults to grub: we don't want that.
|
||||||
# fileSystems."/" =
|
boot.loader.grub.enable = false;
|
||||||
# { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
# Enables the generation of /boot/extlinux/extlinux.conf
|
||||||
# fsType = "ext4";
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
# };
|
boot.loader.raspberryPiColin.enable = true;
|
||||||
|
boot.loader.raspberryPiColin.uboot.enable = true;
|
||||||
|
boot.loader.raspberryPiColin.version = 4;
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"bcm2711_thermal"
|
||||||
|
"bcm_phy_lib"
|
||||||
|
"brcmfmac"
|
||||||
|
"brcmutil"
|
||||||
|
"broadcom"
|
||||||
|
"clk_raspberrypi"
|
||||||
|
"drm" # Direct Render Manager
|
||||||
|
"enclosure" # SCSI ?
|
||||||
|
"fuse"
|
||||||
|
"mdio_bcm_unimac"
|
||||||
|
"pcie_brcmstb"
|
||||||
|
"raspberrypi_cpufreq"
|
||||||
|
"raspberrypi_hwmon"
|
||||||
|
"ses" # SCSI Enclosure Services
|
||||||
|
"uas" # USB attached storage
|
||||||
|
"uio" # userspace IO
|
||||||
|
"uio_pdrv_genirq"
|
||||||
|
"xhci_pci"
|
||||||
|
"xhci_pci_renesas"
|
||||||
|
];
|
||||||
|
boot.initrd.compressor = "gzip"; # defaults to zstd
|
||||||
|
# hack in the `boot.shell_on_fail` arg since it doesn't seem to work otherwise
|
||||||
|
boot.initrd.preFailCommands = "allowShell=1";
|
||||||
|
# default: 4 (warn). 7 is debug
|
||||||
|
# boot.consoleLogLevel = 7;
|
||||||
|
# boot.kernelParams = [
|
||||||
|
# "boot.shell_on_fail"
|
||||||
|
# # "boot.trace"
|
||||||
|
# # "systemd.log_level=debug"
|
||||||
|
# # "systemd.log_target=console"
|
||||||
|
# ];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
}
|
}
|
||||||
|
@@ -42,48 +42,6 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# NixOS defaults to grub: we don't want that.
|
|
||||||
boot.loader.grub.enable = false;
|
|
||||||
# Enables the generation of /boot/extlinux/extlinux.conf
|
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
|
||||||
boot.loader.raspberryPiColin.enable = true;
|
|
||||||
boot.loader.raspberryPiColin.uboot.enable = true;
|
|
||||||
boot.loader.raspberryPiColin.version = 4;
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
|
||||||
"bcm2711_thermal"
|
|
||||||
"bcm_phy_lib"
|
|
||||||
"brcmfmac"
|
|
||||||
"brcmutil"
|
|
||||||
"broadcom"
|
|
||||||
"clk_raspberrypi"
|
|
||||||
"drm" # Direct Render Manager
|
|
||||||
"enclosure" # SCSI ?
|
|
||||||
"fuse"
|
|
||||||
"mdio_bcm_unimac"
|
|
||||||
"pcie_brcmstb"
|
|
||||||
"raspberrypi_cpufreq"
|
|
||||||
"raspberrypi_hwmon"
|
|
||||||
"ses" # SCSI Enclosure Services
|
|
||||||
"uas" # USB attached storage
|
|
||||||
"uio" # userspace IO
|
|
||||||
"uio_pdrv_genirq"
|
|
||||||
"xhci_pci"
|
|
||||||
"xhci_pci_renesas"
|
|
||||||
];
|
|
||||||
boot.initrd.compressor = "gzip"; # defaults to zstd
|
|
||||||
# hack in the `boot.shell_on_fail` arg since it doesn't seem to work otherwise
|
|
||||||
boot.initrd.preFailCommands = "allowShell=1";
|
|
||||||
# default: 4 (warn). 7 is debug
|
|
||||||
# boot.consoleLogLevel = 7;
|
|
||||||
# boot.kernelParams = [
|
|
||||||
# "boot.shell_on_fail"
|
|
||||||
# # "boot.trace"
|
|
||||||
# # "systemd.log_level=debug"
|
|
||||||
# # "systemd.log_target=console"
|
|
||||||
# ];
|
|
||||||
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
Reference in New Issue
Block a user