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

97 lines
2 KiB
Nix
Raw Normal View History

2024-03-09 16:26:54 +01:00
{ pkgs, ... }:
2023-10-25 23:31:32 +02:00
let
homeDir = "/Users/daniel";
in
2022-02-03 23:35:52 +01:00
{
2022-02-06 15:03:02 +01:00
imports = [
2023-09-24 18:10:08 +02:00
../../agenix/hosts/Styx/config.nix
2023-05-15 20:34:08 +02:00
../shared/show-update-changelog.nix
2022-07-29 20:13:31 +02:00
../darwin/defaults.nix
2022-12-28 23:25:11 +01:00
../darwin/sudo.nix
2023-09-07 15:13:43 +02:00
2023-03-19 21:47:23 +01:00
../darwin/fish.nix
2023-04-05 10:10:31 +02:00
../darwin/attic.nix
2024-03-10 23:59:01 +01:00
2024-03-12 09:14:29 +01:00
../darwin/mas.nix
2024-03-10 23:59:01 +01:00
../darwin/skhd.nix
../darwin/yabai.nix
2022-02-06 15:03:02 +01:00
];
2022-02-03 23:35:52 +01:00
nix = {
2024-03-09 16:26:54 +01:00
package = pkgs.nixVersions.stable;
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 = [
2023-12-14 18:29:26 +01:00
"https://attic.cache.daniel.sx/nifoc-systems?priority=1"
"https://nix-community.cachix.org?priority=2"
2022-08-22 21:15:44 +02:00
];
2022-02-03 23:35:52 +01:00
2022-08-22 21:15:44 +02:00
trusted-public-keys = [
2023-04-12 19:59:33 +02:00
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
2022-08-22 21:15:44 +02:00
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
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 = [
{
2023-10-25 23:31:32 +02:00
hostName = "mediaserver.ts.kempkens.network";
protocol = "ssh-ng";
2022-08-07 19:45:07 +02:00
systems = [ "x86_64-linux" "aarch64-linux" ];
2023-10-25 23:31:32 +02:00
sshUser = "nix-remote-builder";
sshKey = "${homeDir}/.ssh/id_nix_remote_builder";
2023-06-24 20:19:50 +02:00
maxJobs = 2;
2023-06-07 20:40:27 +02:00
}
2023-06-26 13:07:19 +02:00
{
2023-10-25 23:31:32 +02:00
hostName = "argon.ts.kempkens.network";
protocol = "ssh-ng";
2023-06-26 13:07:19 +02:00
systems = [ "aarch64-linux" ];
2023-10-25 23:31:32 +02:00
sshUser = "nix-remote-builder";
sshKey = "${homeDir}/.ssh/id_nix_remote_builder";
maxJobs = 2;
2023-06-26 13:07:19 +02:00
}
2022-08-04 20:11:40 +02:00
];
2023-02-27 17:51:39 +01:00
gc = {
automatic = true;
user = "daniel";
2023-04-04 10:41:30 +02:00
interval = { Weekday = 0; Hour = 3; Minute = 15; };
2023-02-27 17:51:39 +01:00
};
2022-02-03 23:35:52 +01:00
};
2023-06-22 20:57:21 +02:00
documentation.doc.enable = false;
2022-10-24 13:19:23 +02:00
2022-02-05 23:30:49 +01:00
users = {
users.daniel = {
2023-10-25 23:31:32 +02:00
home = homeDir;
2022-02-05 23:30:49 +01:00
};
};
2022-02-03 23:35:52 +01:00
environment = {
2023-10-26 10:38:47 +02:00
darwinConfig = "${homeDir}/.config/nixpkgs/system/hosts/Styx.nix";
2022-02-03 23:35:52 +01:00
};
services = {
2023-10-25 23:31:32 +02:00
nix-daemon = {
enable = true;
logFile = "/var/log/nix-daemon.log";
};
2022-02-03 23:35:52 +01:00
};
}