test
This commit is contained in:
parent
651ab0d544
commit
05a732d2e7
4 changed files with 22 additions and 10 deletions
7
nixos/common/modules/bootloader.nix
Normal file
7
nixos/common/modules/bootloader.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
# Bootloader
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
boot.kernelParams = ["quiet"];
|
||||||
|
}
|
|
@ -1,4 +1,8 @@
|
||||||
{ lib, config, pkgs, ...}: {
|
{ lib, config, pkgs, ...}: {
|
||||||
|
|
||||||
|
imports = [ ./bootloader.nix ];
|
||||||
|
# SecureBoot
|
||||||
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
boot.lanzaboote.enable = true;
|
boot.lanzaboote.enable = true;
|
||||||
boot.lanzaboote.pkiBundle = "/etc/secureboot";
|
boot.lanzaboote.pkiBundle = "/etc/secureboot";
|
||||||
|
|
||||||
|
@ -7,4 +11,10 @@
|
||||||
# https://github.com/adi1090x/plymouth-themes
|
# https://github.com/adi1090x/plymouth-themes
|
||||||
boot.plymouth.theme = "red_loader";
|
boot.plymouth.theme = "red_loader";
|
||||||
boot.plymouth.themePackages = [ pkgs.adi1090x-plymouth-themes ];
|
boot.plymouth.themePackages = [ pkgs.adi1090x-plymouth-themes ];
|
||||||
|
|
||||||
|
# Bootloader
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
boot.kernelParams = ["quiet"];
|
||||||
}
|
}
|
|
@ -24,15 +24,6 @@
|
||||||
./hosts/${hostname}
|
./hosts/${hostname}
|
||||||
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
|
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
|
||||||
|
|
||||||
# Bootloader
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
boot.initrd.systemd.enable = true;
|
|
||||||
boot.kernelParams = ["quiet"];
|
|
||||||
|
|
||||||
# SecureBoot
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
# List packages installed in system profile
|
# List packages installed in system profile
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
sbctl
|
sbctl
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
||||||
imports = [ ./disks.nix ];
|
imports = [
|
||||||
|
# This machine won't be using secureboot
|
||||||
|
../../common/modules/bootloader.nix
|
||||||
|
./disks.nix
|
||||||
|
];
|
||||||
nixpkgs.config.allowUnfree = false;
|
nixpkgs.config.allowUnfree = false;
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
|
||||||
|
|
Loading…
Reference in a new issue