Files
nixos/modules-all/default.nix
T

72 lines
1.3 KiB
Nix

{ pkgs, lib, ... }:
{
# Enable flakes
nix = {
package = pkgs.nixFlakes;
buildMachines = [
{
hostName = "dns.me.ts";
system = "aarch64-linux";
}
{
hostName = "jude.me.ts";
system = "x86_64-linux";
}
];
gc = {
automatic = true;
# Scheduling of them is different in nixos vs nix-darwin, so check for
# the extra details there
options = "--delete-older-than 30d";
};
settings = {
auto-optimise-store = (if lib.strings.hasSuffix "darwin" pkgs.system then false else true);
experimental-features = "nix-command flakes";
keep-outputs = true;
keep-derivations = true;
min-free = (toString (1024 * 1024 * 1024) );
max-free = (toString (5 * 1024 * 1024 * 1024) );
substituters = [
"https://cache.garnix.io"
];
trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
};
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"qtwebkit-5.212.0-alpha4"
];
};
# Base packages that need to be in all my hosts
environment.systemPackages = with pkgs; [
agenix
android-file-transfer
bitwarden-cli
diffutils
git
gh
gnupatch
gregpy
findutils
hms # My own home manager switcher
htop
killall
lshw
nano
pciutils
pwgen
transcrypt
unzip
wget
];
}