pub-solar-os/profiles/core/default.nix

125 lines
2.6 KiB
Nix
Raw Normal View History

{ 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
{
# Sets nrdxp.cachix.org binary cache which just speeds up some builds
imports = [ ../cachix ];
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;
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
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
];
};
2021-05-30 19:10:28 +00:00
fonts = {
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
2021-05-30 19:10:28 +00:00
fontconfig.defaultFonts = {
2021-05-30 19:10:28 +00:00
monospace = [ "DejaVu Sans Mono for Powerline" ];
2021-05-30 19:10:28 +00:00
sansSerif = [ "DejaVu Sans" ];
2021-05-30 19:10:28 +00:00
};
};
2021-05-30 19:10:28 +00:00
nix = {
# use nix-dram, a patched nix command, see: https://github.com/dramforever/nix-dram
package = inputs.nix-dram.packages.${pkgs.system}.nix-dram;
# Improve nix store disk usage
2021-05-30 19:10:28 +00:00
autoOptimiseStore = true;
gc.automatic = true;
optimise.automatic = true;
# Prevents impurities in builds
2021-05-30 19:10:28 +00:00
useSandbox = true;
# give root and @wheel special privileges with nix
2021-05-30 19:10:28 +00:00
trustedUsers = [ "root" "@wheel" ];
# 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
# used by nix-dram
default-flake = flake:nixpkgs
2021-05-30 19:10:28 +00:00
'';
};
# For rage encryption, all hosts need a ssh key pair
services.openssh = {
enable = true;
openFirewall = lib.mkDefault false;
};
# Service that makes Out of Memory Killer more effective
2021-06-09 16:42:56 +00:00
services.earlyoom.enable = true;
2021-05-30 19:10:28 +00:00
boot.supportedFilesystems = [ "ntfs" ];
};
}