2021-12-28 16:19:29 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
|
2022-03-19 16:54:22 +01:00
|
|
|
imports = [ ./packages.nix ];
|
2021-12-28 16:19:29 +01:00
|
|
|
# provide overlays
|
|
|
|
# -----------------
|
2023-06-30 00:14:18 +02:00
|
|
|
# nixpkgs.overlays = [ (import ../../pkgs) ];
|
2021-12-28 16:19:29 +01:00
|
|
|
|
|
|
|
# allow un-free
|
|
|
|
# -------------
|
|
|
|
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
|
|
|
|
|
|
|
|
# some system stuff
|
|
|
|
# -----------------
|
2024-02-16 22:21:05 +01:00
|
|
|
time.timeZone = "Europe/Berlin";
|
2021-12-28 16:19:29 +01:00
|
|
|
#time.timeZone = lib.mkDefault "Pacific/Auckland";
|
|
|
|
#time.timeZone = lib.mkDefault "Asia/Singapore";
|
|
|
|
#time.timeZone = lib.mkDefault "Asia/Makassar";
|
|
|
|
|
|
|
|
# keyboard fiddling
|
|
|
|
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
|
|
|
|
console.font = "Lat2-Terminus16";
|
|
|
|
console.keyMap = lib.mkDefault "us";
|
2024-05-27 19:10:54 +02:00
|
|
|
services.xserver.xkb.layout = lib.mkDefault "us";
|
2021-12-28 16:19:29 +01:00
|
|
|
|
|
|
|
# swappiness
|
|
|
|
# ----------
|
|
|
|
# 0 = only when running out of RAM
|
|
|
|
# 100 = always swapp
|
|
|
|
boot.kernel.sysctl."vm.swappiness" = 0;
|
|
|
|
|
|
|
|
# rewire NIX_PATH
|
|
|
|
# ---------------
|
|
|
|
#environment.variables.NIX_PATH = lib.mkForce "/var/src";
|
|
|
|
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
|
|
|
|
|
|
|
|
# Machines should be fast by default
|
|
|
|
# ----------------------------------
|
2023-12-17 16:17:28 +01:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkOverride 1001 "ondemand";
|
2021-12-28 16:19:29 +01:00
|
|
|
|
|
|
|
# set vim to the default editor
|
|
|
|
# -----------------------------
|
|
|
|
programs.vim.defaultEditor = true;
|
|
|
|
|
|
|
|
}
|