about summary refs log tree commit diff stats
path: root/system/boot/default.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-11 12:07:32 +0100
committerene <ene@sils.li>2023-02-11 12:10:44 +0100
commitf7634949fa4e744cd5a930505ac4e9b4f81dc530 (patch)
tree7a290ad625f47430d40facaceb4f5c0706058eb8 /system/boot/default.nix
parentFeat(home-manager): Add firefox config (diff)
downloadnixos-config-f7634949fa4e744cd5a930505ac4e9b4f81dc530.zip
Feat: Switch to default.nix
Diffstat (limited to 'system/boot/default.nix')
-rw-r--r--system/boot/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/system/boot/default.nix b/system/boot/default.nix
new file mode 100644
index 00000000..f978d26a
--- /dev/null
+++ b/system/boot/default.nix
@@ -0,0 +1,29 @@
+{
+  config,
+  pkgs,
+  ...
+}: {
+  boot = {
+    initrd = {
+      #compressor = "lz4";
+      #compressorArgs = ["-9"];
+      kernelModules = ["nvme" "btrfs"];
+    };
+
+    kernelPackages = pkgs.linuxPackages_latest;
+    loader = {
+      grub = {
+        enable = true;
+        version = 2;
+        theme = pkgs.nixos-grub2-theme;
+        splashImage = ./boot_pictures/gnu.png;
+        efiSupport = true;
+        device = "nodev"; # only for efi
+      };
+      efi = {
+        canTouchEfiVariables = true;
+        efiSysMountPoint = "/boot";
+      };
+    };
+  };
+}