summaryrefslogtreecommitdiff
path: root/config/nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2025-01-29 17:51:30 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2025-01-29 17:58:32 +0100
commit0f86479aa9920b7c4c2493d26e87c35ee0e46d0c (patch)
tree9c2aace4272398d7d41a454ff5905a4415927b54 /config/nix
parent5942b39871b3f6f7622282a80488d203e8218ebb (diff)
nix: remote builds: factor out
Diffstat (limited to 'config/nix')
-rw-r--r--config/nix/default.nix19
-rw-r--r--config/nix/remote-builds.nix29
2 files changed, 0 insertions, 48 deletions
diff --git a/config/nix/default.nix b/config/nix/default.nix
deleted file mode 100644
index a9d79cc..0000000
--- a/config/nix/default.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{lib, ...}: {
- imports = [./remote-builds.nix];
-
- personal.nix = {
- enable = true;
- autoUpgrade.enable = true;
- gc.enable = true;
- flake = "git+file:///etc/nixos/";
- };
- nix.settings.max-jobs = lib.mkDefault 1;
- nixpkgs.flake = {
- setNixPath = true;
- setFlakeRegistry = true;
- };
- system.autoUpgrade.flags = [
- # for reading secrets from a file
- "--impure"
- ];
-}
diff --git a/config/nix/remote-builds.nix b/config/nix/remote-builds.nix
deleted file mode 100644
index a895aad..0000000
--- a/config/nix/remote-builds.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{...}: {
- programs.ssh = {
- extraConfig = ''
- Host hephaistos.local
- # Prevent using ssh-agent or another keyfile, useful for testing
- IdentitiesOnly yes
- IdentityFile /etc/ssh/nixremote
- # The weakly privileged user on the remote builder – if not set, 'root' is used – which will hopefully fail
- User nixremote
- '';
- knownHosts."hephaistos.local".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHvtqi8tziBuviUV8LDK2ddQQUbHdJYB02dgWTK5Olxq";
- };
-
- nix = {
- distributedBuilds = true;
- buildMachines = [
- {
- hostName = "hephaistos.local";
- system = "x86_64-linux";
- # Nix custom ssh-variant that avoids lots of "trusted-users" settings pain
- protocol = "ssh-ng";
- maxJobs = 4;
- speedFactor = 4;
- supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
- mandatoryFeatures = [];
- }
- ];
- };
-}