legacy nix don't understand braced options and options outside it both
This commit is contained in:
parent
7c4b000810
commit
8aecf23593
1 changed files with 7 additions and 6 deletions
|
|
@ -709,6 +709,7 @@ in
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
|
configurationLimit = 5;
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
useOSProber = true;
|
useOSProber = true;
|
||||||
theme = "${pkgs.sleek-grub-theme.override {
|
theme = "${pkgs.sleek-grub-theme.override {
|
||||||
|
|
@ -723,6 +724,7 @@ in
|
||||||
grub = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
|
configurationLimit = 5;
|
||||||
theme = "${pkgs.sleek-grub-theme.override {
|
theme = "${pkgs.sleek-grub-theme.override {
|
||||||
withStyle = "orange";
|
withStyle = "orange";
|
||||||
withBanner = "Загрузчик Linux";
|
withBanner = "Загрузчик Linux";
|
||||||
|
|
@ -761,8 +763,7 @@ in
|
||||||
randomizedDelaySec = "45min"; # машины не запускают GC одновременно
|
randomizedDelaySec = "45min"; # машины не запускают GC одновременно
|
||||||
options = "--delete-older-than 14d";
|
options = "--delete-older-than 14d";
|
||||||
};
|
};
|
||||||
# Хранить не более 5 поколений в меню GRUB
|
|
||||||
boot.loader.grub.configurationLimit = 5;
|
|
||||||
# Периодический TRIM для SSD (безопасен и на HDD — просто no-op)
|
# Периодический TRIM для SSD (безопасен и на HDD — просто no-op)
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
# nix-daemon стартует только после Yggdrasil, иначе nixos.builds.node недостижим
|
# nix-daemon стартует только после Yggdrasil, иначе nixos.builds.node недостижим
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue