2021-05-11 18:40:37 +00:00
|
|
|
{ self, config, lib, pkgs, ... }:
|
2020-01-04 05:06:31 +00:00
|
|
|
let inherit (lib) fileContents;
|
2020-07-31 04:17:28 +00:00
|
|
|
in
|
|
|
|
{
|
2021-12-29 22:42:51 +00:00
|
|
|
# Sets nrdxp.cachix.org binary cache which just speeds up some builds
|
2021-04-19 02:43:37 +00:00
|
|
|
imports = [ ../cachix ];
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
config = {
|
|
|
|
pub-solar.terminal-life.enable = true;
|
|
|
|
pub-solar.audio.enable = true;
|
|
|
|
pub-solar.crypto.enable = true;
|
|
|
|
pub-solar.devops.enable = true;
|
|
|
|
pub-solar.docker.enable = true;
|
|
|
|
pub-solar.nextcloud.enable = true;
|
|
|
|
pub-solar.office.enable = true;
|
|
|
|
# pub-solar.printing.enable = true; # this is enabled automatically if office is enabled
|
|
|
|
pub-solar.server.enable = true;
|
|
|
|
pub-solar.printing.enable = true;
|
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# This is just a representation of the nix default
|
2021-05-30 19:10:28 +00:00
|
|
|
nix.systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
# Core unix utility packages
|
|
|
|
coreutils-full
|
|
|
|
progress
|
|
|
|
dnsutils
|
|
|
|
inetutils
|
|
|
|
pciutils
|
|
|
|
usbutils
|
2022-01-05 22:20:38 +00:00
|
|
|
gitFull
|
2021-05-30 19:10:28 +00:00
|
|
|
git-lfs
|
|
|
|
git-bug
|
|
|
|
wget
|
|
|
|
openssl
|
|
|
|
openssh
|
|
|
|
curl
|
|
|
|
htop
|
|
|
|
lsof
|
|
|
|
psmisc
|
|
|
|
xdg-utils
|
|
|
|
sysfsutils
|
|
|
|
renameutils
|
|
|
|
nfs-utils
|
|
|
|
moreutils
|
|
|
|
mailutils
|
|
|
|
keyutils
|
|
|
|
input-utils
|
|
|
|
elfutils
|
|
|
|
binutils
|
|
|
|
dateutils
|
|
|
|
diffutils
|
|
|
|
findutils
|
|
|
|
exfat-utils
|
2021-07-13 17:05:36 +00:00
|
|
|
file
|
2021-05-30 19:10:28 +00:00
|
|
|
|
|
|
|
# zippit
|
|
|
|
zip
|
|
|
|
unzip
|
|
|
|
|
|
|
|
# Modern modern utilities
|
|
|
|
p7zip
|
|
|
|
croc
|
|
|
|
jq
|
|
|
|
|
|
|
|
# Nix specific utilities
|
|
|
|
niv
|
|
|
|
manix
|
|
|
|
nix-index
|
2022-01-05 22:20:38 +00:00
|
|
|
nix-tree
|
2021-05-30 19:10:28 +00:00
|
|
|
# Build broken, python2.7-PyJWT-2.0.1.drv' failed
|
|
|
|
#nixops
|
|
|
|
psos
|
|
|
|
|
|
|
|
# Fun
|
|
|
|
neofetch
|
|
|
|
];
|
|
|
|
};
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
fonts = {
|
|
|
|
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
fontconfig.defaultFonts = {
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
monospace = [ "DejaVu Sans Mono for Powerline" ];
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
2019-12-05 05:36:36 +00:00
|
|
|
};
|
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
nix = {
|
2022-01-31 11:16:36 +00:00
|
|
|
# use nix-dram, a patched nix command, see: https://github.com/dramforever/nix-dram
|
2021-05-30 19:10:28 +00:00
|
|
|
package = pkgs.nix-dram;
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# Improve nix store disk usage
|
2021-05-30 19:10:28 +00:00
|
|
|
autoOptimiseStore = true;
|
|
|
|
gc.automatic = true;
|
|
|
|
optimise.automatic = true;
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# Prevents impurities in builds
|
2021-05-30 19:10:28 +00:00
|
|
|
useSandbox = true;
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# give root and @wheel special privileges with nix
|
2021-05-30 19:10:28 +00:00
|
|
|
trustedUsers = [ "root" "@wheel" ];
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# Generally useful nix option defaults
|
2021-05-30 19:10:28 +00:00
|
|
|
extraOptions = ''
|
|
|
|
min-free = 536870912
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
fallback = true
|
2021-10-06 07:27:50 +00:00
|
|
|
# used by nix-dram
|
|
|
|
default-flake = flake:nixpkgs
|
2021-05-30 19:10:28 +00:00
|
|
|
'';
|
|
|
|
};
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2022-01-31 13:42:02 +00:00
|
|
|
# For rage encryption, all hosts need a ssh key pair
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = lib.mkDefault false;
|
|
|
|
};
|
2020-07-27 04:24:28 +00:00
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# Service that makes Out of Memory Killer more effective
|
2021-06-09 16:42:56 +00:00
|
|
|
services.earlyoom.enable = true;
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
|
|
|
};
|
2019-12-05 05:36:36 +00:00
|
|
|
}
|