Some checks failed
CI / check (push) Successful in 6m48s
CI / build-and-cache (boxy) (push) Failing after 27m9s
CI / build-and-cache (john-endesktop) (push) Failing after 9m35s
CI / build-and-cache (live-usb) (push) Failing after 18m27s
CI / build-and-cache (nix-book) (push) Failing after 29m17s
CI / build-and-cache (nix-deck) (push) Failing after 1h12m5s
CI / build-and-cache (zix790prors) (push) Failing after 20m0s
44 lines
973 B
Nix
44 lines
973 B
Nix
# Common configuration shared between NixOS and Darwin
|
|
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
glances
|
|
pciutils
|
|
tree
|
|
usbutils
|
|
vim
|
|
] ++ lib.optionals pkgs.stdenv.isLinux [
|
|
ghostty.terminfo # So tmux works when SSH'ing from ghostty
|
|
];
|
|
|
|
nix = {
|
|
package = pkgs.nix;
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
max-jobs = "auto";
|
|
trusted-users = [ "johno" ];
|
|
substituters = [
|
|
"https://nix-cache.johnogle.info"
|
|
];
|
|
trusted-public-keys = [
|
|
"nix-cache.johnogle.info-1:G0ZGQwcSC4+4SDDFHZI/ZX3a6uFrs/5cjA5Jvaypj0I="
|
|
];
|
|
fallback = true;
|
|
connect-timeout = 5;
|
|
};
|
|
|
|
gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 10d";
|
|
};
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
};
|
|
}
|