146 lines
2.8 KiB
Nix
146 lines
2.8 KiB
Nix
{ self, config, lib, pkgs, ... }:
|
|
let inherit (lib) fileContents;
|
|
in
|
|
{
|
|
imports = [ ../cachix ];
|
|
|
|
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;
|
|
|
|
nix.systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
# Core unix utility packages
|
|
coreutils-full
|
|
progress
|
|
dnsutils
|
|
inetutils
|
|
pciutils
|
|
usbutils
|
|
git
|
|
git-lfs
|
|
git-bug
|
|
git-crypt
|
|
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
|
|
|
|
# zippit
|
|
zip
|
|
unzip
|
|
|
|
# Modern modern utilities
|
|
p7zip
|
|
croc
|
|
jq
|
|
|
|
# Nix specific utilities
|
|
niv
|
|
manix
|
|
nix-index
|
|
# Build broken, python2.7-PyJWT-2.0.1.drv' failed
|
|
#nixops
|
|
psos
|
|
|
|
# Fun
|
|
neofetch
|
|
];
|
|
};
|
|
|
|
fonts = {
|
|
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
|
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
monospace = [ "DejaVu Sans Mono for Powerline" ];
|
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
|
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
package = pkgs.nix-dram;
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
gc.automatic = true;
|
|
|
|
optimise.automatic = true;
|
|
|
|
useSandbox = true;
|
|
|
|
allowedUsers = [ "@wheel" ];
|
|
|
|
trustedUsers = [ "root" "@wheel" ];
|
|
|
|
extraOptions = ''
|
|
min-free = 536870912
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
fallback = true
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
|
|
registry.default = {
|
|
to = {
|
|
type = "github";
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-unstable";
|
|
};
|
|
from = {
|
|
type = "indirect";
|
|
id = "default";
|
|
};
|
|
};
|
|
};
|
|
|
|
system.autoUpgrade.enable = true;
|
|
|
|
<<<<<<< HEAD
|
|
services.earlyoom.enable = true;
|
|
=======
|
|
# For rage encryption, all hosts need a ssh key pair
|
|
services.openssh = {
|
|
enable = true;
|
|
openFirewall = lib.mkDefault false;
|
|
};
|
|
|
|
services.earlyoom.enable = true;
|
|
>>>>>>> devos/core
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
|
};
|
|
}
|