whoops, this hardware-config stuff is killin muis

This commit is contained in:
Serenity-F 2024-03-29 19:14:46 +10:00
parent 1a910bf21e
commit 852e7ef148
2 changed files with 23 additions and 15 deletions

View file

@ -28,7 +28,6 @@
"flakes" "flakes"
]; ];
}; };
# cleanup packages older than 3 days from nix store
gc = { gc = {
# automatic = true; # automatic = true;
# dates = "weekly"; # dates = "weekly";
@ -37,18 +36,18 @@
}; };
}; };
# Bootloader. # Bootloader.
boot = { # boot = {
loader = { # loader = {
systemd-boot.enable = true; # systemd-boot.enable = true;
systemd-boot.configurationLimit = 5; # systemd-boot.configurationLimit = 5;
efi.canTouchEfiVariables = true; # efi.canTouchEfiVariables = true;
}; # };
# plymouth.enable = true; # plymouth.enable = true;
initrd = { initrd = {
systemd.enable = true; # systemd.enable = true;
secrets = { # secrets = {
"/crypto_keyfile.bin" = null; # "/crypto_keyfile.bin" = null;
}; # };
# kernelParams = [ # kernelParams = [
# "quiet" # "quiet"
# ]; # ];

View file

@ -13,19 +13,28 @@
# Enable swap on luks # Enable swap on luks
boot = { boot = {
loader = { loader = {
systemd-boot.enable = true; systemd-boot = {
enable = true;
configurationLimit = 5;
};
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
# efiSysMountPoint = "/boot/efi"; # efiSysMountPoint = "/boot/efi";
}; };
}; };
initrd = { initrd = {
# luks.devices."luks-c2b8b1cb-6d01-4e7c-a659-1fcf01618c41" = { systemd.enable = true;
# device = "/dev/disk/by-uuid/c2b8b1cb-6d01-4e7c-a659-1fcf01618c41"; secrets = {
# "crypto_keyfile.bin" = null;
};
luks = {
# devices."luks-DISK_UUID" = {
# device = "/dev/disk/by-uuid/DISK_UUID";
# keyfile = "/crypto_keyfile.bin"; # keyfile = "/crypto_keyfile.bin";
# }; # };
}; };
}; };
};
services.fstrim.enable = true; services.fstrim.enable = true;