Fix Grub config

This commit is contained in:
Hoang Nguyen 2024-02-25 00:00:00 +07:00
parent 856519d807
commit f06987ddd6
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
5 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@
## Darwin
- [ ] amethyst -> yabai
- [ ] dnscrypt-proxy
- [ ] dnscrypt-proxy / unbound
- [ ] iterm2 module (import from a generated `profile.json` file: Nord theme, Map Ctrl to `+ESC`)
## NixOS

View File

@ -56,7 +56,7 @@
nix.gc = {
automatic = true;
options = "--delete-older-than 7d";
options = "--delete-older-than 14d";
interval.Day = 7;
};

View File

@ -135,6 +135,7 @@
stateDir = "/gnu/var";
gc = {
enable = true;
extraArgs = [ "--optimize" "--delete-generations=14d" ];
dates = lib.mkDefault config.nix.gc.dates;
};
};

View File

@ -18,15 +18,15 @@
# Being more fancy with grub2
boot.loader.grub = {
enable = true;
enableCryptodisk = true;
zfsSupport = true;
efiSupport = true;
efiInstallAsRemovable = true; # guarantee that the firmware will find GRUB
configurationLimit = 10;
# gfxmodeEfi = ""; # TODO: find out the best mode manually later
theme = pkgs.nixos-grub2-theme;
font = config.boot.plymouth.font;
fontSize = 32;
fontSize = 48;
mirroredBoots = [
{ devices = [ "nodev" ]; path = "/boot"; }
];
};
# Being fancy. Other people have already taken care of all the tough setting-up parts :)
@ -55,7 +55,6 @@
# Bluetooth is meh, but I might need it sometimes
hardware.bluetooth = {
enable = true;
hsphfpd.enable = true;
powerOnBoot = false;
};

View File

@ -16,7 +16,7 @@
nix.gc = {
automatic = true;
options = "--delete-older-than 7d";
options = "--delete-older-than 14d";
dates = "weekly";
persistent = true;
};