-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboot.nix
52 lines (46 loc) · 1.14 KB
/
boot.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
{
config,
pkgs,
...
}: {
# bootloader
boot = {
initrd.kernelModules = [];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
systemd-boot.configurationLimit = 5; # Limits entry number
};
initrd.luks.devices.cryptroot.device = "/dev/disk/by-uuid/bc3364ae-b704-4066-923b-e5d27bba867a";
# hibernation part
resumeDevice = "/dev/disk/by-uuid/d84d217a-74e4-4705-991e-2f910b28b387";
# silent boot
kernelParams = [
"resume_offset=17959152" # btrfs inspect-internal map-swapfile -r /swap/swapfile
"quiet"
"splash"
"vga=current"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
];
supportedFilesystems = ["ntfs"];
initrd.verbose = false;
consoleLogLevel = 0;
};
powerManagement.enable = true;
services.btrfs.autoScrub = {
enable = true;
interval = "monthly";
fileSystems = ["/"];
};
# login manager
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd startx";
};
};
};
}