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

72 lines
1.4 KiB
Nix
Raw Normal View History

2022-08-09 16:30:54 +00:00
{ lib, ... }:
let
inherit (lib) optionals;
secret = import ../../secret/hosts/Styx.nix;
in
2022-02-03 22:35:52 +00:00
{
2022-02-06 14:03:02 +00:00
imports = [
2022-07-29 18:13:31 +00:00
../darwin/defaults.nix
../darwin/fonts.nix
2022-02-06 14:03:02 +00:00
];
2022-02-03 22:35:52 +00:00
nix = {
binaryCaches = [
"https://nix-community.cachix.org"
2022-08-06 09:17:13 +00:00
"https://nifoc.cachix.org"
2022-08-09 16:30:54 +00:00
] ++ optionals secret.nix-cache.nifoc.enabled [
secret.nix-cache.nifoc.s3Url
2022-02-03 22:35:52 +00:00
];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2022-08-06 09:17:13 +00:00
"nifoc.cachix.org-1:ymuftq7RgN/lf/iWXFK8gpwDSAGFaGBeliWe9u6q8II="
2022-08-09 16:30:54 +00:00
] ++ optionals secret.nix-cache.nifoc.enabled [
secret.nix-cache.nifoc.publicKeyValue
2022-02-03 22:35:52 +00:00
];
trustedUsers = [
"@admin"
];
extraOptions = ''
experimental-features = nix-command flakes
2022-03-02 22:31:45 +00:00
extra-platforms = x86_64-darwin
2022-02-03 22:35:52 +00:00
keep-derivations = true
keep-outputs = true
auto-optimise-store = 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;
}
];
2022-02-03 22:35:52 +00:00
};
2022-02-05 22:30:49 +00:00
users = {
nix.configureBuildUsers = true;
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";
2022-06-27 19:38:26 +00:00
variables = {
EDITOR = "nvim";
};
2022-02-03 22:35:52 +00:00
};
services = {
nix-daemon.enable = true;
};
}