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

73 lines
1.4 KiB
Nix
Raw Normal View History

2022-08-09 18:30:54 +02:00
{ lib, ... }:
let
inherit (lib) optionals;
secret = import ../../secret/hosts/Styx.nix;
in
2022-02-03 23:35:52 +01:00
{
2022-02-06 15:03:02 +01:00
imports = [
2022-07-29 20:13:31 +02:00
../darwin/defaults.nix
../darwin/fonts.nix
2022-02-06 15:03:02 +01:00
];
2022-02-03 23:35:52 +01:00
nix = {
2022-08-22 21:15:44 +02:00
settings = {
experimental-features = [ "nix-command" "flakes" ];
extra-platforms = [ "x86_64-darwin" ];
2022-02-03 23:35:52 +01:00
2022-08-22 21:15:44 +02:00
auto-optimise-store = true;
keep-derivations = true;
keep-outputs = true;
2022-02-03 23:35:52 +01:00
2022-08-22 21:15:44 +02:00
substituters = [
"https://nix-community.cachix.org"
"https://nifoc.cachix.org"
] ++ optionals secret.nix-cache.nifoc.enabled [
secret.nix-cache.nifoc.s3Url
];
2022-02-03 23:35:52 +01:00
2022-08-22 21:15:44 +02:00
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nifoc.cachix.org-1:ymuftq7RgN/lf/iWXFK8gpwDSAGFaGBeliWe9u6q8II="
] ++ optionals secret.nix-cache.nifoc.enabled [
secret.nix-cache.nifoc.publicKeyValue
];
trusted-users = [ "@admin" ];
};
configureBuildUsers = true;
2022-08-04 20:11:40 +02:00
2022-08-04 20:14:10 +02:00
distributedBuilds = true;
2022-08-04 20:11:40 +02:00
buildMachines = [
{
hostName = "builder-sail";
2022-08-07 19:45:07 +02:00
systems = [ "x86_64-linux" "aarch64-linux" ];
2022-08-04 20:11:40 +02:00
maxJobs = 1;
}
];
2022-02-03 23:35:52 +01:00
};
2022-10-24 13:19:23 +02:00
documentation.doc.enable = false;
2022-02-05 23:30:49 +01:00
users = {
users.daniel = {
home = "/Users/daniel";
};
};
2022-02-03 23:35:52 +01:00
environment = {
2022-07-29 20:13:31 +02:00
darwinConfig = "$HOME/.config/nixpkgs/system/hosts/Styx.nix";
2022-06-27 21:38:26 +02:00
variables = {
EDITOR = "nvim";
};
2022-02-03 23:35:52 +01:00
};
services = {
nix-daemon.enable = true;
};
}