2020-07-31 04:17:28 +00:00
|
|
|
{
|
2023-01-28 21:27:52 +00:00
|
|
|
self,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) fileContents;
|
|
|
|
in {
|
2021-12-29 22:42:51 +00:00
|
|
|
# Sets nrdxp.cachix.org binary cache which just speeds up some builds
|
2023-01-28 21:27:52 +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;
|
|
|
|
|
2022-01-31 11:16:36 +00:00
|
|
|
# This is just a representation of the nix default
|
2023-01-28 21:27:52 +00:00
|
|
|
nix.systemFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
2021-05-30 19:10:28 +00:00
|
|
|
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
# Core unix utility packages
|
|
|
|
coreutils-full
|
|
|
|
progress
|
|
|
|
dnsutils
|
|
|
|
inetutils
|
2022-02-02 03:47:08 +00:00
|
|
|
mtr
|
2021-05-30 19:10:28 +00:00
|
|
|
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
|
2022-06-02 08:09:42 +00:00
|
|
|
exfat
|
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
|
2022-04-09 13:56:13 +00:00
|
|
|
nixpkgs-review
|
2021-05-30 19:10:28 +00:00
|
|
|
# Build broken, python2.7-PyJWT-2.0.1.drv' failed
|
|
|
|
#nixops
|
|
|
|
psos
|
2022-01-31 16:43:05 +00:00
|
|
|
nvd
|
2021-05-30 19:10:28 +00:00
|
|
|
|
|
|
|
# Fun
|
|
|
|
neofetch
|
|
|
|
];
|
|
|
|
};
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
fonts = {
|
2023-01-28 21:27:52 +00:00
|
|
|
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 = {
|
2023-01-28 21:27:52 +00:00
|
|
|
monospace = ["DejaVu Sans Mono for Powerline"];
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2023-01-28 21:27:52 +00:00
|
|
|
sansSerif = ["DejaVu Sans"];
|
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;
|
2022-08-13 18:17:00 +00:00
|
|
|
openFirewall = lib.mkDefault true;
|
|
|
|
passwordAuthentication = false;
|
2022-01-31 13:42:02 +00:00
|
|
|
};
|
|
|
|
|
2021-12-29 22:42:51 +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
|
|
|
|
2022-02-02 03:47:08 +00:00
|
|
|
# Use latest LTS linux kernel by default
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_5_15;
|
|
|
|
|
2023-01-28 21:27:52 +00:00
|
|
|
boot.supportedFilesystems = ["ntfs"];
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
2019-12-05 05:36:36 +00:00
|
|
|
}
|