nixos-config/nixos/system/all/defaults.nix

52 lines
1.4 KiB
Nix
Raw Normal View History

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
# -----------------
time.timeZone = lib.mkDefault "Europe/Berlin";
#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";
services.xserver.layout = lib.mkDefault "us";
# 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}" ];
# how much configurations should be kept?
2022-01-17 11:57:52 +01:00
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 3;
boot.loader.generic-extlinux-compatible.configurationLimit = lib.mkDefault 3;
boot.loader.grub.configurationLimit = lib.mkDefault 3;
2021-12-28 16:19:29 +01:00
# Machines should be fast by default
# ----------------------------------
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
# set vim to the default editor
# -----------------------------
programs.vim.defaultEditor = true;
}