Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/base/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Base configuration shared across all systems
{
imports = [
./gc.nix
./nix-config.nix
./unfree-packages.nix
];
Expand Down
18 changes: 18 additions & 0 deletions modules/base/gc.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Nix store garbage collection
{
lib,
pkgs,
...
}: {
nix.gc =
{
automatic = true;
options = "--delete-older-than 30d";
}
// lib.optionalAttrs pkgs.stdenv.isLinux {
dates = "weekly";
}
// lib.optionalAttrs pkgs.stdenv.isDarwin {
interval = {Weekday = 0;};
};
}
4 changes: 4 additions & 0 deletions modules/nixos/boot.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Limit boot entries to prevent /boot from filling up
{
boot.loader.systemd-boot.configurationLimit = 10;
}
1 change: 1 addition & 0 deletions modules/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
imports = [
./llm
./web
./boot.nix
./filebrowser-quantum.nix
./restic-backup.nix
./users.nix
Expand Down