pinwheel: Add boot module

This commit is contained in:
Alexander Heldt
2023-11-14 17:09:19 +01:00
parent 35595f3422
commit 21a30271fb
2 changed files with 21 additions and 19 deletions

View File

@@ -14,25 +14,6 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel = {
sysctl = {
"fs.inotify.max_user_instances" = 1024; # default: 128
};
};
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];

View File

@@ -0,0 +1,21 @@
{ pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel = {
sysctl = {
"fs.inotify.max_user_instances" = 1024; # default: 128
};
};
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
};
}