Files
dotfiles/hosts/modules/minimal.nix
2023-03-08 10:08:50 +05:30

55 lines
1005 B
Nix

{ config, pkgs, ... }:
{
security = {
sudo.enable = false;
doas = {
enable = true;
extraRules = [
{
users = [ "wheel" ];
keepEnv = true;
persist = true;
}
];
};
};
environment.systemPackages = with pkgs; [
git
htop
vim
tmux
wireguard-tools
rnix-lsp
nmap
gcc
postgresql #for the client cli
];
programs = {
gnupg = {
agent = {
enable = true;
pinentryFlavor = "curses";
};
};
};
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
builders-use-substitutes = true
'';
settings.trusted-users = [ "root" ];
buildMachines = [{
hostName = "satori";
systems = [ "x86_64-linux" "aarch64-linux" ];
maxJobs = 4;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
}];
distributedBuilds = true;
};
}