1
0
Fork 0
dotfiles/system/hosts/Pallas.nix

108 lines
2.4 KiB
Nix
Raw Normal View History

2024-12-06 10:48:08 +00:00
{ config, ... }:
2024-11-08 15:16:13 +00:00
let
homeDir = "/Users/daniel";
in
{
imports = [
../../agenix/hosts/Pallas/config.nix
../shared/show-update-changelog.nix
../darwin/defaults.nix
../darwin/sudo.nix
../darwin/fish.nix
../darwin/attic.nix
../darwin/mas.nix
../darwin/fake-homebrew.nix
];
system.stateVersion = 5;
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
extra-platforms = [ "x86_64-darwin" ];
log-lines = 25;
keep-derivations = true;
keep-outputs = true;
extra-nix-path = "nixpkgs=flake:nixpkgs";
builders-use-substitutes = true;
extra-substituters = [
2024-12-08 21:08:24 +00:00
"https://attic.cache.daniel.sx/nifoc-systems/?priority=30"
2024-11-08 15:16:13 +00:00
"https://nix-community.cachix.org?priority=50"
"https://cache.garnix.io?priority=60"
"https://cache.lix.systems?priority=70"
];
extra-trusted-public-keys = [
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
2024-12-06 10:48:08 +00:00
netrc-file = config.age.secrets.nix-netrc.path;
2024-11-08 15:16:13 +00:00
trusted-users = [ "@admin" ];
connect-timeout = 5;
};
2024-11-08 16:58:27 +00:00
optimise = {
automatic = true;
};
2024-11-08 15:16:13 +00:00
distributedBuilds = true;
buildMachines = [
{
hostName = "mediaserver.ts.kempkens.network";
protocol = "ssh-ng";
systems = [ "x86_64-linux" "aarch64-linux" ];
sshUser = "nix-remote-builder";
sshKey = "${homeDir}/.ssh/id_nix_remote_builder";
maxJobs = 2;
}
{
hostName = "argon.ts.kempkens.network";
protocol = "ssh-ng";
systems = [ "aarch64-linux" ];
sshUser = "nix-remote-builder";
sshKey = "${homeDir}/.ssh/id_nix_remote_builder";
maxJobs = 2;
}
];
gc = {
automatic = true;
user = "daniel";
interval = { Weekday = 0; Hour = 3; Minute = 15; };
};
};
documentation.doc.enable = false;
users = {
users.daniel = {
home = homeDir;
};
};
environment = {
darwinConfig = "${homeDir}/.config/nixpkgs/system/hosts/Pallas.nix";
};
services = {
nix-daemon = {
enable = true;
logFile = "/var/log/nix-daemon.log";
};
};
}