2023-04-04 12:08:13 +02:00
|
|
|
{ inputs, lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-10-20 22:28:37 +02:00
|
|
|
nix = {
|
|
|
|
# Allow Nix Flakes
|
|
|
|
# Keep derivations so shells don't break (direnv)
|
|
|
|
# If the disk has less than 100MiB, free up to 2GiB by garbage-collecting.
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
|
|
max-free = ${toString (2048 * 1024 * 1024)}
|
|
|
|
'';
|
|
|
|
# Scheduled garbage-collect
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
};
|
2023-04-11 14:53:19 +02:00
|
|
|
|
2023-10-01 16:56:12 +02:00
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
console = {
|
|
|
|
# font = "Lat2-Terminus16";
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
};
|
2023-04-04 12:08:13 +02:00
|
|
|
}
|