btrfs autoscrub + initrd systemd

This commit is contained in:
minish 2024-12-31 00:28:20 -05:00
parent 76bd847043
commit 46b59d0163
Signed by: min
SSH Key Fingerprint: SHA256:NFjjdbkd6u7aoMlcrDCVvz6o2UBtlAuPm8IQ2vhZ3Fg
2 changed files with 15 additions and 6 deletions

View File

@ -1,12 +1,19 @@
{...}: { {...}: {
# TODO: lanzaboote # TODO: lanzaboote
boot.loader = { boot = {
efi.canTouchEfiVariables = true; initrd.systemd = {
timeout = 2;
systemd-boot = {
enable = true; enable = true;
configurationLimit = 3; enableTpm2 = true;
};
loader = {
efi.canTouchEfiVariables = true;
timeout = 2;
systemd-boot = {
enable = true;
configurationLimit = 3;
};
}; };
}; };
} }

View File

@ -43,6 +43,8 @@
}; };
environment.systemPackages = [pkgs.ncdu]; environment.systemPackages = [pkgs.ncdu];
services.btrfs.autoScrub.enable = true;
fileSystems = { fileSystems = {
"/".neededForBoot = true; "/".neededForBoot = true;
"/etc/ssh" = { "/etc/ssh" = {