aboutsummaryrefslogtreecommitdiff
path: root/system/boot.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-03-30 20:46:26 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-03-30 20:46:26 +0200
commit67e324107e05f3245ddac034607afd0e1dea478f (patch)
treed14a4b6e98fc707c72e24f0879b0e4297aaad78f /system/boot.nix
parent2316eab54de77c351e88c5657eeaaa703ff4c498 (diff)
Refactored the entire configuration
Diffstat (limited to 'system/boot.nix')
-rw-r--r--system/boot.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/system/boot.nix b/system/boot.nix
new file mode 100644
index 0000000..a238999
--- /dev/null
+++ b/system/boot.nix
@@ -0,0 +1,44 @@
+{
+ pkgs,
+ lib,
+ ...
+}: {
+ boot = {
+ kernelPackages = pkgs.linuxPackages_latest;
+
+ initrd = {
+ kernelModules = ["i915"];
+ systemd.enable = true;
+ };
+
+ loader = {
+ efi = {
+ canTouchEfiVariables = true;
+ efiSysMountPoint = "/boot";
+ };
+ grub = {
+ enable = lib.mkDefault true;
+ device = "nodev";
+ useOSProber = lib.mkDefault false;
+ efiSupport = true;
+ };
+ systemd-boot = {
+ enable = false;
+ consoleMode = "keep";
+ configurationLimit = 5;
+ };
+ };
+
+ plymouth = {
+ enable = false;
+ theme = "deus_ex";
+ themePackages = [
+ (pkgs.adi1090x-plymouth-themes.override {
+ selected_themes = ["deus_ex"];
+ })
+ ];
+ };
+ };
+
+ fileSystems."/boot".options = ["fmask=0077" "dmask=0077"];
+}