bigbox2: fixed incorrect boot image + added overrides for cache dump
This commit is contained in:
1 parent
6dd651d156
commit
be306f2e30
3 files changed
+72
-53
No files matched your search
@@ -12,7 +12,7 @@
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/sdb"; # install GRUB to MBR
|
||||
device = "/dev/sda"; # install GRUB to MBR
|
||||
efiSupport = false;
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ let
|
||||
in
|
||||
{
|
||||
skyg = {
|
||||
gc.rootDays = 30;
|
||||
gc.userDays = 30;
|
||||
user.enable = true;
|
||||
nixos.common = {
|
||||
ssh-server.enable = true;
|
||||
|
||||
@@ -1,62 +1,79 @@
|
||||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
# System Packages
|
||||
services.hydra.useSubstitutes = true;
|
||||
programs.dconf.enable = true;
|
||||
programs.nix-ld.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
optimise.automatic = true;
|
||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
options.skyg = {
|
||||
gc = {
|
||||
rootDays = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
description = "How often (in days) we call 'nix-collect-garbage' on root user";
|
||||
default = 7;
|
||||
};
|
||||
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 = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
# shell tools
|
||||
git
|
||||
usbutils
|
||||
config = let skyg = config.skyg; in {
|
||||
|
||||
# system utils
|
||||
nfs-utils
|
||||
lm_sensors
|
||||
hwinfo
|
||||
dig
|
||||
iperf
|
||||
# System Packages
|
||||
services.hydra.useSubstitutes = true;
|
||||
programs.dconf.enable = true;
|
||||
programs.nix-ld.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
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
|
||||
glib-networking
|
||||
glib
|
||||
glibc
|
||||
# system utils
|
||||
nfs-utils
|
||||
lm_sensors
|
||||
hwinfo
|
||||
dig
|
||||
iperf
|
||||
|
||||
# printer
|
||||
system-config-printer
|
||||
# misc
|
||||
glib-networking
|
||||
glib
|
||||
glibc
|
||||
|
||||
# nix utils
|
||||
nix-index
|
||||
nil
|
||||
cachix
|
||||
nixpkgs-fmt
|
||||
nvd
|
||||
# shell tools
|
||||
wget
|
||||
];
|
||||
services.xserver.excludePackages = with pkgs; [
|
||||
xterm
|
||||
];
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Toronto";
|
||||
# printer
|
||||
system-config-printer
|
||||
|
||||
# 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 7d"
|
||||
"0 23 * * * ${config.skyg.user.name} nix-collect-garbage --delete-older-than 7d"
|
||||
# nix utils
|
||||
nix-index
|
||||
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.
|
||||
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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user