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
|
2019-10-26 13:46:37 +02:00
|
|
|
./networking-qos.nix
|
|
|
|
./nginx-landingpage.nix
|
|
|
|
./nginx.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
./packages.nix
|
|
|
|
./restic.nix
|
|
|
|
./sftp-user.nix
|
2019-10-26 13:46:37 +02:00
|
|
|
./sshd-known-hosts-bootup.nix
|
|
|
|
./sshd-known-hosts-private.nix
|
|
|
|
./sshd-known-hosts-public.nix
|
|
|
|
./sshd.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./tinc.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
# provide overlays
|
|
|
|
# -----------------
|
2019-12-20 05:54:26 +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
|
|
|
|
# -----------------
|
2019-11-16 19:19:30 +01:00
|
|
|
# time.timeZone = lib.mkDefault "Europe/Berlin";
|
|
|
|
time.timeZone = lib.mkDefault "Pacific/Auckland";
|
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
i18n = {
|
2019-12-20 05:54:26 +01:00
|
|
|
consoleFont = "Lat2-Terminus16";
|
2019-10-24 02:20:38 +02:00
|
|
|
consoleKeyMap = "us";
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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
|
|
|
};
|
|
|
|
|
2019-10-26 13:46:37 +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
|
|
|
}
|