2024-12-06 10:48:08 +00:00
|
|
|
{ config, ... }:
|
|
|
|
|
2023-10-25 21:31:32 +00:00
|
|
|
let
|
|
|
|
homeDir = "/Users/daniel";
|
|
|
|
in
|
2022-02-03 22:35:52 +00:00
|
|
|
{
|
2022-02-06 14:03:02 +00:00
|
|
|
imports = [
|
2023-09-24 16:10:08 +00:00
|
|
|
../../agenix/hosts/Styx/config.nix
|
2023-05-15 18:34:08 +00:00
|
|
|
../shared/show-update-changelog.nix
|
|
|
|
|
2022-07-29 18:13:31 +00:00
|
|
|
../darwin/defaults.nix
|
2022-12-28 22:25:11 +00:00
|
|
|
../darwin/sudo.nix
|
2023-09-07 13:13:43 +00:00
|
|
|
|
2023-03-19 20:47:23 +00:00
|
|
|
../darwin/fish.nix
|
2023-04-05 08:10:31 +00:00
|
|
|
../darwin/attic.nix
|
2024-03-10 22:59:01 +00:00
|
|
|
|
2024-03-12 08:14:29 +00:00
|
|
|
../darwin/mas.nix
|
2024-07-30 22:51:24 +00:00
|
|
|
../darwin/fake-homebrew.nix
|
2022-02-06 14:03:02 +00:00
|
|
|
];
|
|
|
|
|
2024-09-20 20:49:40 +00:00
|
|
|
system.stateVersion = 5;
|
|
|
|
ids.gids.nixbld = 30000;
|
|
|
|
|
2022-02-03 22:35:52 +00:00
|
|
|
nix = {
|
2022-08-22 19:15:44 +00:00
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
extra-platforms = [ "x86_64-darwin" ];
|
2022-02-03 22:35:52 +00:00
|
|
|
|
2024-07-05 20:33:27 +00:00
|
|
|
log-lines = 25;
|
2022-08-22 19:15:44 +00:00
|
|
|
keep-derivations = true;
|
|
|
|
keep-outputs = true;
|
2024-07-07 21:52:33 +00:00
|
|
|
extra-nix-path = "nixpkgs=flake:nixpkgs";
|
2022-02-03 22:35:52 +00:00
|
|
|
|
2024-12-06 10:48:08 +00:00
|
|
|
always-allow-substitutes = true;
|
2024-07-05 20:33:27 +00:00
|
|
|
builders-use-substitutes = true;
|
|
|
|
|
|
|
|
extra-substituters = [
|
2024-07-05 08:52:38 +00:00
|
|
|
"https://attic.cache.daniel.sx/nifoc-systems?priority=30"
|
|
|
|
"https://nix-community.cachix.org?priority=50"
|
|
|
|
"https://cache.garnix.io?priority=60"
|
2024-07-08 10:59:56 +00:00
|
|
|
"https://cache.lix.systems?priority=70"
|
|
|
|
"https://pre-commit-hooks.cachix.org?priority=80"
|
2022-08-22 19:15:44 +00:00
|
|
|
];
|
2022-02-03 22:35:52 +00:00
|
|
|
|
2024-07-05 20:33:27 +00:00
|
|
|
extra-trusted-substituters = [
|
2024-06-20 12:25:02 +00:00
|
|
|
"https://attic.hosting.nedeco.mobi/devshells"
|
|
|
|
];
|
|
|
|
|
2024-07-05 20:33:27 +00:00
|
|
|
extra-trusted-public-keys = [
|
2023-04-12 17:59:33 +00:00
|
|
|
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
|
2022-08-22 19:15:44 +00:00
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
2024-07-02 22:01:29 +00:00
|
|
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
2024-07-08 10:59:56 +00:00
|
|
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
|
|
|
"pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc="
|
2024-06-20 12:25:02 +00:00
|
|
|
|
2024-07-05 20:33:27 +00:00
|
|
|
# extra-trusted-substituters
|
2024-06-20 12:25:02 +00:00
|
|
|
"devshells:YXtbU0DheB229oCr2D0H0qHjj2Ed/e2VZiLSXgQ1IVA="
|
2022-08-22 19:15:44 +00:00
|
|
|
];
|
|
|
|
|
2024-12-06 10:48:08 +00:00
|
|
|
netrc-file = config.age.secrets.nix-netrc.path;
|
|
|
|
|
2022-08-22 19:15:44 +00:00
|
|
|
trusted-users = [ "@admin" ];
|
2024-07-05 20:33:27 +00:00
|
|
|
|
|
|
|
connect-timeout = 5;
|
2022-08-22 19:15:44 +00:00
|
|
|
};
|
|
|
|
|
2024-11-13 10:42:49 +00:00
|
|
|
optimise = {
|
|
|
|
automatic = true;
|
|
|
|
};
|
|
|
|
|
2022-08-22 19:15:44 +00:00
|
|
|
configureBuildUsers = true;
|
2022-08-04 18:11:40 +00:00
|
|
|
|
2022-08-04 18:14:10 +00:00
|
|
|
distributedBuilds = true;
|
|
|
|
|
2022-08-04 18:11:40 +00:00
|
|
|
buildMachines = [
|
|
|
|
{
|
2023-10-25 21:31:32 +00:00
|
|
|
hostName = "mediaserver.ts.kempkens.network";
|
|
|
|
protocol = "ssh-ng";
|
2022-08-07 17:45:07 +00:00
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
2023-10-25 21:31:32 +00:00
|
|
|
sshUser = "nix-remote-builder";
|
|
|
|
sshKey = "${homeDir}/.ssh/id_nix_remote_builder";
|
2023-06-24 18:19:50 +00:00
|
|
|
maxJobs = 2;
|
2023-06-07 18:40:27 +00:00
|
|
|
}
|
2023-06-26 11:07:19 +00:00
|
|
|
|
|
|
|
{
|
2023-10-25 21:31:32 +00:00
|
|
|
hostName = "argon.ts.kempkens.network";
|
|
|
|
protocol = "ssh-ng";
|
2023-06-26 11:07:19 +00:00
|
|
|
systems = [ "aarch64-linux" ];
|
2023-10-25 21:31:32 +00:00
|
|
|
sshUser = "nix-remote-builder";
|
|
|
|
sshKey = "${homeDir}/.ssh/id_nix_remote_builder";
|
|
|
|
maxJobs = 2;
|
2023-06-26 11:07:19 +00:00
|
|
|
}
|
2022-08-04 18:11:40 +00:00
|
|
|
];
|
2023-02-27 16:51:39 +00:00
|
|
|
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
user = "daniel";
|
2023-04-04 08:41:30 +00:00
|
|
|
interval = { Weekday = 0; Hour = 3; Minute = 15; };
|
2023-02-27 16:51:39 +00:00
|
|
|
};
|
2022-02-03 22:35:52 +00:00
|
|
|
};
|
|
|
|
|
2023-06-22 18:57:21 +00:00
|
|
|
documentation.doc.enable = false;
|
2022-10-24 11:19:23 +00:00
|
|
|
|
2022-02-05 22:30:49 +00:00
|
|
|
users = {
|
|
|
|
users.daniel = {
|
2023-10-25 21:31:32 +00:00
|
|
|
home = homeDir;
|
2022-02-05 22:30:49 +00:00
|
|
|
};
|
|
|
|
};
|
2022-02-03 22:35:52 +00:00
|
|
|
|
|
|
|
environment = {
|
2023-10-26 08:38:47 +00:00
|
|
|
darwinConfig = "${homeDir}/.config/nixpkgs/system/hosts/Styx.nix";
|
2022-02-03 22:35:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2023-10-25 21:31:32 +00:00
|
|
|
nix-daemon = {
|
|
|
|
enable = true;
|
|
|
|
logFile = "/var/log/nix-daemon.log";
|
|
|
|
};
|
2022-02-03 22:35:52 +00:00
|
|
|
};
|
|
|
|
}
|