From 46b59d0163e1399041ddbc56d41b4b38891f1e1c Mon Sep 17 00:00:00 2001 From: min Date: Tue, 31 Dec 2024 00:28:20 -0500 Subject: [PATCH] btrfs autoscrub + initrd systemd --- hosts/mpl/bootloader.nix | 19 +++++++++++++------ hosts/mpl/mounts.nix | 2 ++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/hosts/mpl/bootloader.nix b/hosts/mpl/bootloader.nix index d351659..026b424 100644 --- a/hosts/mpl/bootloader.nix +++ b/hosts/mpl/bootloader.nix @@ -1,12 +1,19 @@ {...}: { # TODO: lanzaboote - boot.loader = { - efi.canTouchEfiVariables = true; - - timeout = 2; - systemd-boot = { + boot = { + initrd.systemd = { enable = true; - configurationLimit = 3; + enableTpm2 = true; + }; + + loader = { + efi.canTouchEfiVariables = true; + + timeout = 2; + systemd-boot = { + enable = true; + configurationLimit = 3; + }; }; }; } diff --git a/hosts/mpl/mounts.nix b/hosts/mpl/mounts.nix index e6daccd..a746296 100644 --- a/hosts/mpl/mounts.nix +++ b/hosts/mpl/mounts.nix @@ -43,6 +43,8 @@ }; environment.systemPackages = [pkgs.ncdu]; + services.btrfs.autoScrub.enable = true; + fileSystems = { "/".neededForBoot = true; "/etc/ssh" = {