nix-config/modules/system.nix
Donovan Glover 019603afc7
meta: Begin making system module customizable
These options are pretty important so it'd be cool to be able to change
them. Current strategy is to assume that configuration through the
module is preferred over overriding the NixOS option directly.
2024-04-03 09:44:57 -04:00

56 lines
993 B
Nix

{ pkgs, ... }:
let
inherit (pkgs.nixVersions) nix_2_19;
# 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";
in
{
boot.loader = {
systemd-boot = {
enable = true;
editor = false;
configurationLimit = 10;
};
timeout = 0;
efi.canTouchEfiVariables = true;
};
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;
};
};
zramSwap = {
enable = true;
memoryPercent = 100;
};
time = {
inherit timeZone;
};
i18n = {
inherit defaultLocale supportedLocales;
};
system = {
inherit stateVersion;
};
}