2022-02-03 22:35:52 +00:00
|
|
|
{
|
2022-02-06 14:03:02 +00:00
|
|
|
imports = [
|
2023-05-15 18:34:08 +00:00
|
|
|
../shared/show-update-changelog.nix
|
|
|
|
|
2022-07-29 18:13:31 +00:00
|
|
|
../darwin/defaults.nix
|
|
|
|
../darwin/fonts.nix
|
2022-12-28 22:25:11 +00:00
|
|
|
../darwin/sudo.nix
|
2023-03-19 20:47:23 +00:00
|
|
|
../darwin/fish.nix
|
2023-04-05 08:10:31 +00:00
|
|
|
../darwin/attic.nix
|
2022-02-06 14:03:02 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
|
2022-08-22 19:15:44 +00:00
|
|
|
auto-optimise-store = true;
|
|
|
|
keep-derivations = true;
|
|
|
|
keep-outputs = true;
|
2022-02-03 22:35:52 +00:00
|
|
|
|
2022-08-22 19:15:44 +00:00
|
|
|
substituters = [
|
2023-04-12 17:59:33 +00:00
|
|
|
"https://attic.cache.daniel.sx/nifoc-systems"
|
|
|
|
"https://nifoc.cachix.org"
|
2022-08-22 19:15:44 +00:00
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
2022-02-03 22:35:52 +00:00
|
|
|
|
2022-08-22 19:15:44 +00:00
|
|
|
trusted-public-keys = [
|
2023-04-12 17:59:33 +00:00
|
|
|
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
|
|
|
|
"nifoc.cachix.org-1:ymuftq7RgN/lf/iWXFK8gpwDSAGFaGBeliWe9u6q8II="
|
2022-08-22 19:15:44 +00:00
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
|
|
|
|
trusted-users = [ "@admin" ];
|
|
|
|
};
|
|
|
|
|
2023-04-05 08:10:31 +00:00
|
|
|
extraOptions = ''
|
2023-04-05 11:12:40 +00:00
|
|
|
post-build-hook = ${../../home/programs/scripts/attic-system-cache}
|
2023-04-05 08:10:31 +00:00
|
|
|
'';
|
|
|
|
|
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 = [
|
|
|
|
{
|
|
|
|
hostName = "builder-sail";
|
2022-08-07 17:45:07 +00:00
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
2022-08-04 18:11:40 +00:00
|
|
|
maxJobs = 1;
|
|
|
|
}
|
2023-04-04 15:20:09 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
hostName = "builder-attic";
|
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
maxJobs = 1;
|
|
|
|
}
|
2023-04-13 16:53:40 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
hostName = "builder-mediaserver";
|
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
maxJobs = 1;
|
|
|
|
}
|
2023-06-07 18:40:27 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
hostName = "builder-argon";
|
|
|
|
systems = [ "aarch64-linux" ];
|
|
|
|
maxJobs = 1;
|
|
|
|
}
|
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-21 12:21:40 +00:00
|
|
|
documentation.enable = false;
|
2022-10-24 11:19:23 +00:00
|
|
|
|
2022-02-05 22:30:49 +00:00
|
|
|
users = {
|
|
|
|
users.daniel = {
|
|
|
|
home = "/Users/daniel";
|
|
|
|
};
|
|
|
|
};
|
2022-02-03 22:35:52 +00:00
|
|
|
|
|
|
|
environment = {
|
2022-07-29 18:13:31 +00:00
|
|
|
darwinConfig = "$HOME/.config/nixpkgs/system/hosts/Styx.nix";
|
2023-04-05 11:12:40 +00:00
|
|
|
etc."nix/netrc".source = ../../secret/shared/nix-netrc;
|
2022-02-03 22:35:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
nix-daemon.enable = true;
|
|
|
|
};
|
|
|
|
}
|