modules/nixos: rename config to shared
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
19
modules/nixos/shared/boot/default.nix
Normal file
19
modules/nixos/shared/boot/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = with inputs; [
|
||||
chaotic.nixosModules.default
|
||||
./loader.nix
|
||||
./lanzaboote.nix
|
||||
];
|
||||
boot = {
|
||||
plymouth.enable = true;
|
||||
consoleLogLevel = 0;
|
||||
kernelPackages = pkgs.linuxPackages_cachyos;
|
||||
initrd = {
|
||||
systemd.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
15
modules/nixos/shared/boot/lanzaboote.nix
Normal file
15
modules/nixos/shared/boot/lanzaboote.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = with inputs; [
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
boot = {
|
||||
lanzaboote = {
|
||||
enable = config.module.config.secureBoot;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
};
|
||||
}
|
14
modules/nixos/shared/boot/loader.nix
Normal file
14
modules/nixos/shared/boot/loader.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
boot.loader = {
|
||||
timeout = 0;
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot = {
|
||||
consoleMode = "auto";
|
||||
configurationLimit = lib.mkOverride 1337 10;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user