From ffd1ac27a341de0da4bf63a5da1320ee6d132ae0 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 3 Aug 2024 00:23:38 +0300 Subject: 2024-08-03 --- configurations/eonwe/default.nix | 19 ++++++++++++++++++- configurations/ilmare/default.nix | 24 ++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) (limited to 'configurations') diff --git a/configurations/eonwe/default.nix b/configurations/eonwe/default.nix index ca20140..29f1adc 100644 --- a/configurations/eonwe/default.nix +++ b/configurations/eonwe/default.nix @@ -15,7 +15,10 @@ with lib; syncthing.enable = true; - openssh.server.enable = true; + openssh.server = { + enable = true; + port = 22; + }; android.enable = true; beets.enable = true; @@ -294,4 +297,18 @@ with lib; enable = true; memoryPercent = 25; }; + + users = { + users.builder = { + isSystemUser = true; + group = "builder"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHzclJfd2n0POaFlYuSRK40JddtS+PYIpFyTz2BY94Wb root@ilmare" + ]; + useDefaultShell = true; + }; + groups.builder = { }; + }; + + nix.settings.trusted-users = [ "builder" ]; } diff --git a/configurations/ilmare/default.nix b/configurations/ilmare/default.nix index 1e9f5ff..a1b5007 100644 --- a/configurations/ilmare/default.nix +++ b/configurations/ilmare/default.nix @@ -123,4 +123,28 @@ _: { enable = true; memoryPercent = 100; }; + + nix = { + buildMachines = [ + { + hostName = "eonwe.shire.net"; + + protocol = "ssh-ng"; + sshUser = "builder"; + sshKey = "/root/.ssh/id_ed25519"; + + system = "x86_64-linux"; + supportedFeatures = [ + "nixos-test" + "benchmark" + "big-parallel" + "kvm" + ]; + } + ]; + + distributedBuilds = true; + + settings.builders-use-substitutes = true; + }; } -- cgit 1.4.1