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

129 lines
2.7 KiB
Nix
Raw Normal View History

2022-01-31 16:37:21 +00:00
{ self, config, lib, pkgs, inputs, ... }:
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;
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
2021-10-11 22:37:16 +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
exfat-utils
2021-07-07 17:10:52 +00:00
file
2021-05-30 19:10:28 +00:00
# zippit
zip
unzip
# Modern modern utilities
p7zip
croc
jq
2022-02-25 12:31:21 +00:00
jless
2021-05-30 19:10:28 +00:00
# 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
nvd
2021-05-30 19:10:28 +00:00
# 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 = {
2022-01-31 11:16:36 +00:00
# use nix-dram, a patched nix command, see: https://github.com/dramforever/nix-dram
package = inputs.nix-dram.packages.${pkgs.system}.nix-dram;
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;
2022-01-31 11:16:36 +00:00
# Prevents impurities in builds
2021-05-30 19:10:28 +00:00
useSandbox = true;
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" ];
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
# 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;
};
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;
2021-05-30 19:10:28 +00:00
boot.supportedFilesystems = [ "ntfs" ];
};
}