From 21a30271fbbb12ad69a26719f48e8106e5cc7f43 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Tue, 14 Nov 2023 17:09:19 +0100 Subject: [PATCH] pinwheel: Add `boot` module --- hosts/pinwheel/configuration.nix | 19 ------------------- hosts/pinwheel/modules/boot/default.nix | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 hosts/pinwheel/modules/boot/default.nix diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index 13f1d15..35db3de 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -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 = [ ... ]; diff --git a/hosts/pinwheel/modules/boot/default.nix b/hosts/pinwheel/modules/boot/default.nix new file mode 100644 index 0000000..b066383 --- /dev/null +++ b/hosts/pinwheel/modules/boot/default.nix @@ -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; + }; + }; +}