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,6 +1,12 @@
{...}: { {...}: {
# TODO: lanzaboote # TODO: lanzaboote
boot.loader = { boot = {
initrd.systemd = {
enable = true;
enableTpm2 = true;
};
loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
timeout = 2; timeout = 2;
@ -9,4 +15,5 @@
configurationLimit = 3; 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" = {