nixos-config/system/all/default.nix

82 lines
1.9 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ lib, config, pkgs, ... }: {
2019-10-24 02:20:38 +02:00
imports = [
<backup-module>
<krops-lib>
<cluster-module>
<modules>
# needed
<home-manager/nixos>
# 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
# -----------------
2020-03-08 19:47:12 +01:00
nixpkgs.overlays = [ (import <pkgs>) (import <nix-writers/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
# ---------------
environment.variables.NIX_PATH = lib.mkForce "/var/src";
# 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
};
# 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
}