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

89 lines
2.1 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ lib, config, pkgs, ... }: {
2021-09-25 11:07:09 +02:00
2019-10-24 02:20:38 +02:00
imports = [
2021-09-25 11:07:09 +02:00
../../modules
2019-10-24 02:20:38 +02:00
# needed
2021-09-24 06:47:46 +02:00
#<home-manager/nixos>
2019-10-24 02:20:38 +02:00
# cross-compiling
2019-12-14 06:15:37 +01:00
#<cleverca22/qemu.nix>
2019-10-24 02:20:38 +02:00
./grub.nix
./networking-qos.nix
./nginx-landingpage.nix
./nginx.nix
2019-10-24 02:20:38 +02:00
./packages.nix
2020-09-04 00:49:35 +02:00
./borg-jobs.nix
./borg-scripts.nix
./sshd-known-hosts-bootup.nix
./sshd-known-hosts-private.nix
./sshd-known-hosts-public.nix
./sshd.nix
./syncthing.nix
./tinc.nix
2020-03-17 08:00:57 +01:00
./on-failure.nix
2020-04-27 21:41:42 +02:00
./hosts.nix
2019-10-24 02:20:38 +02:00
];
# default backup excludes
backup.exclude = [ ".git" ".stfolder" ".stversions" ];
2019-10-24 02:20:38 +02:00
# provide overlays
# -----------------
nixpkgs.overlays = [ (import ../../pkgs) ];
2019-10-24 02:20:38 +02:00
# allow un-free
# -------------
nixpkgs.config.allowUnfree = true;
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
# some system stuff
# -----------------
2020-03-31 11:34:25 +02:00
time.timeZone = lib.mkDefault "Europe/Berlin";
2020-02-14 18:18:40 +01:00
#time.timeZone = lib.mkDefault "Pacific/Auckland";
2020-02-18 06:31:56 +01:00
#time.timeZone = lib.mkDefault "Asia/Singapore";
2020-03-31 11:34:25 +02:00
#time.timeZone = lib.mkDefault "Asia/Makassar";
2019-11-16 19:19:30 +01:00
2021-03-06 05:59:24 +01:00
# keyboard fiddling
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
2020-05-16 02:25:06 +02:00
console.font = "Lat2-Terminus16";
2021-03-06 05:59:24 +01:00
console.keyMap = lib.mkDefault "us";
services.xserver.layout = lib.mkDefault "us";
2019-10-24 02:20:38 +02:00
# swappiness
# ----------
# 0 = only when running out of RAM
# 100 = always swapp
boot.kernel.sysctl."vm.swappiness" = 0;
# rewire NIX_PATH
# ---------------
2021-10-05 22:42:33 +02:00
#environment.variables.NIX_PATH = lib.mkForce "/var/src";
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
2019-10-24 02:20:38 +02:00
# Shell configuration
# -------------------
programs.custom = {
2019-12-20 05:54:26 +01:00
bash.enable = true;
zsh.enable = true;
2019-10-24 02:20:38 +02:00
};
# Machines should be fast by default
# ----------------------------------
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
# set vim to the default editor
# -----------------------------
programs.vim.defaultEditor = true;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.03"; # Did you read the comment?
2019-10-24 02:20:38 +02:00
}