2024-04-03 14:05:28 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs.nixVersions) nix_2_19;
|
2024-04-03 15:43:02 +02:00
|
|
|
|
|
|
|
# TODO: Make these variables options
|
|
|
|
timeZone = "America/New_York";
|
|
|
|
defaultLocale = "ja_JP.UTF-8";
|
|
|
|
supportedLocales = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
|
|
|
stateVersion = "22.11";
|
2024-04-03 14:05:28 +02:00
|
|
|
in
|
2023-06-22 17:54:12 +02:00
|
|
|
{
|
2024-04-04 03:28:50 +02:00
|
|
|
boot = {
|
|
|
|
tmp.cleanOnBoot = true;
|
|
|
|
|
|
|
|
loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
editor = false;
|
|
|
|
configurationLimit = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
timeout = 0;
|
|
|
|
efi.canTouchEfiVariables = true;
|
2024-04-03 13:30:40 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-03 14:05:28 +02:00
|
|
|
systemd = {
|
|
|
|
extraConfig = "DefaultTimeoutStopSec=10s";
|
|
|
|
services.NetworkManager-wait-online.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
package = nix_2_19;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
warn-dirty = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-03 15:16:18 +02:00
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
memoryPercent = 100;
|
|
|
|
};
|
|
|
|
|
2024-04-03 15:43:02 +02:00
|
|
|
time = {
|
|
|
|
inherit timeZone;
|
|
|
|
};
|
2024-04-03 13:14:47 +02:00
|
|
|
|
2024-04-03 15:43:02 +02:00
|
|
|
i18n = {
|
|
|
|
inherit defaultLocale supportedLocales;
|
|
|
|
};
|
2024-04-03 13:14:47 +02:00
|
|
|
|
2024-04-03 15:43:02 +02:00
|
|
|
system = {
|
|
|
|
inherit stateVersion;
|
|
|
|
};
|
2023-06-22 17:54:12 +02:00
|
|
|
}
|