forked from JaKooLit/NixOS-Hyprland
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbootloader.nix
57 lines (56 loc) · 1.3 KB
/
bootloader.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
pkgs,
config,
host,
username,
options,
lib,
inputs,
system,
...
}:
with lib; let
cfg = config.system.bootloader;
in {
options.system.bootloader = {
enable = mkEnableOption "Enable Bootloader";
};
config = mkIf cfg.enable {
catppuccin.grub.enable = true;
catppuccin.grub.flavor = "mocha";
boot = {
loader.efi = {
canTouchEfiVariables = true;
};
loader.timeout = 3;
loader.grub = {
enable = true;
devices = ["nodev"];
efiSupport = true;
memtest86.enable = true;
extraGrubInstallArgs = ["--bootloader-id=${host}"];
configurationName = "${host}";
gfxmodeEfi = "2560x1440";
# theme = pkgs.catppuccin-grub;
# dedsec-theme = {
# enable = true;
# style = "reaper";
# icon = "color";
# resolution = "1440p";
#};
};
tmp = {
useTmpfs = false;
tmpfsSize = "30%";
};
binfmt.registrations.appimage = {
wrapInterpreterInShell = true;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
};
};
}