2021-10-01 07:08:00 -07:00
|
|
|
{ self, config, lib, pkgs, ... }:
|
|
|
|
let inherit (lib) fileContents;
|
|
|
|
in
|
|
|
|
{
|
2022-03-17 08:11:12 -07:00
|
|
|
imports = [ ../cachix ];
|
|
|
|
|
|
|
|
nix.systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
|
|
|
2022-05-22 04:10:29 -07:00
|
|
|
fonts = {
|
|
|
|
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
|
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
monospace = [ "DejaVu Sans Mono for Powerline" ];
|
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-05-22 05:31:45 -07:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pinentry_gnome
|
|
|
|
];
|
2022-03-17 08:11:12 -07:00
|
|
|
|
2022-03-22 05:06:31 -07:00
|
|
|
services.devmon.enable = true;
|
|
|
|
|
2022-03-17 08:11:12 -07:00
|
|
|
# For rage encryption, all hosts need a ssh key pair
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = lib.mkDefault false;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
#programs.gnupg.agent.pinentryFlavor = "curses";
|
|
|
|
|
|
|
|
services.earlyoom.enable = true;
|
2021-10-01 07:08:00 -07:00
|
|
|
}
|