2022-09-18 15:13:50 -07:00
|
|
|
{ self, config, lib, pkgs, ... }:
|
|
|
|
let inherit (lib) fileContents;
|
|
|
|
in
|
|
|
|
{
|
2022-12-06 08:01:17 -08:00
|
|
|
imports = [ ../../users/anish ];
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
|
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
monospace = [ "DejaVu Sans Mono for Powerline" ];
|
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
2022-12-04 21:07:27 -08:00
|
|
|
settings = {
|
|
|
|
sandbox = true;
|
2022-12-06 22:41:19 -08:00
|
|
|
trusted-users = [ "root" "@wheel" ];
|
2022-12-04 21:07:27 -08:00
|
|
|
allowed-users = [ "@wheel" ];
|
|
|
|
auto-optimise-store = true;
|
2022-12-05 23:09:27 -08:00
|
|
|
system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
2022-12-04 21:07:27 -08:00
|
|
|
};
|
2022-09-18 15:13:50 -07:00
|
|
|
gc.automatic = true;
|
|
|
|
optimise.automatic = true;
|
|
|
|
extraOptions = ''
|
|
|
|
min-free = 536870912
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
fallback = true
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pinentry_gnome
|
|
|
|
cached-nix-shell
|
|
|
|
];
|
|
|
|
|
|
|
|
# For rage encryption, all hosts need a ssh key pair
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = lib.mkDefault false;
|
|
|
|
};
|
|
|
|
|
2022-12-06 21:52:37 -08:00
|
|
|
# programs.gnupg.agent.enable = true;
|
|
|
|
# programs.gnupg.agent.pinentryFlavor = "curses";
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
services.earlyoom.enable = true;
|
|
|
|
}
|