fix: NixOS | change persistence config and set up for re-install

This commit is contained in:
2025-02-08 14:33:29 +05:00
parent 523297f96d
commit ee9fae50c6

View File

@@ -15,7 +15,7 @@ in {
boot = { boot = {
loader = { loader = {
# Set this to true on first install. This must be false for secure boot. # Set this to true on first install. This must be false for secure boot.
systemd-boot.enable = lib.mkForce false; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
@@ -45,7 +45,7 @@ in {
''; '';
lanzaboote = { lanzaboote = {
enable = true; enable = false;
pkiBundle = "/var/lib/sbctl"; pkiBundle = "/var/lib/sbctl";
}; };
}; };
@@ -201,7 +201,7 @@ in {
protonup-qt protonup-qt
]; ];
environment.persistence."/persistant" = { environment.persistence."/persistent" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/var/log" "/var/log"
@@ -209,6 +209,7 @@ in {
"/var/lib/nixos" "/var/lib/nixos"
"/var/lib/sbctl" "/var/lib/sbctl"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/var/lib/sbctl"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
]; ];
files = [ files = [