bigbox2: fixed incorrect boot image + added overrides for cache dump

This commit is contained in:
ari committed 2026-09-02 14:22:29 -04:00
1 parent 6dd651d156
commit be306f2e30
3 files changed
+72 -53

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.loader.grub = { boot.loader.grub = {
enable = true; enable = true;
device = "/dev/sdb"; # install GRUB to MBR device = "/dev/sda"; # install GRUB to MBR
efiSupport = false; efiSupport = false;
}; };
+2
View File
@@ -10,6 +10,8 @@ let
in in
{ {
skyg = { skyg = {
gc.rootDays = 30;
gc.userDays = 30;
user.enable = true; user.enable = true;
nixos.common = { nixos.common = {
ssh-server.enable = true; ssh-server.enable = true;
+69 -52
View File
@@ -1,62 +1,79 @@
{ pkgs, config, ... }: { pkgs, config, lib, ... }:
{ {
# System Packages options.skyg = {
services.hydra.useSubstitutes = true; gc = {
programs.dconf.enable = true; rootDays = lib.mkOption {
programs.nix-ld.enable = true; type = lib.types.int;
nixpkgs.config.allowUnfree = true; description = "How often (in days) we call 'nix-collect-garbage' on root user";
nix = { default = 7;
optimise.automatic = true; };
settings.experimental-features = [ "nix-command" "flakes" ]; userDays = lib.mkOption {
type = lib.types.int;
description = "How often in (days) we call 'nix-collect-garbage' on skyg.user.name";
default = 7;
};
};
}; };
programs.nh = { config = let skyg = config.skyg; in {
enable = true;
clean.enable = true;
};
environment.systemPackages = with pkgs; [
# shell tools
git
usbutils
# system utils # System Packages
nfs-utils services.hydra.useSubstitutes = true;
lm_sensors programs.dconf.enable = true;
hwinfo programs.nix-ld.enable = true;
dig nixpkgs.config.allowUnfree = true;
iperf nix = {
optimise.automatic = true;
settings.experimental-features = [ "nix-command" "flakes" ];
};
programs.nh = {
enable = true;
clean.enable = true;
};
environment.systemPackages = with pkgs; [
# shell tools
git
usbutils
# misc # system utils
glib-networking nfs-utils
glib lm_sensors
glibc hwinfo
dig
iperf
# printer # misc
system-config-printer glib-networking
glib
glibc
# nix utils # printer
nix-index system-config-printer
nil
cachix
nixpkgs-fmt
nvd
# shell tools
wget
];
services.xserver.excludePackages = with pkgs; [
xterm
];
# Set your time zone.
time.timeZone = "America/Toronto";
# Select internationalisation properties. # nix utils
i18n.defaultLocale = "en_CA.UTF-8"; nix-index
nil
# Storage Clean up cachix
services.cron = { nixpkgs-fmt
enable = true; nvd
systemCronJobs = [ # shell tools
"0 23 * * * root nix-collect-garbage --delete-older-than 7d" wget
"0 23 * * * ${config.skyg.user.name} nix-collect-garbage --delete-older-than 7d"
]; ];
services.xserver.excludePackages = with pkgs; [
xterm
];
# Set your time zone.
time.timeZone = "America/Toronto";
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
# Storage Clean up
services.cron = {
enable = true;
systemCronJobs = [
"0 23 * * * root nix-collect-garbage --delete-older-than ${toString skyg.gc.rootDays}d"
"0 23 * * * ${skyg.user.name} nix-collect-garbage --delete-older-than ${toString skyg.gc.userDays}d"
];
};
}; };
} }