From 9fa94af7140afb7c9fcced8aa1fb20abb81c5955 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 2 Nov 2025 14:20:57 -0800 Subject: add helpers to build remotely with nixos --- profiles/defaults.nix | 1 + profiles/nix/remote-builder.nix | 32 -------------------------------- profiles/remote-builder.nix | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 32 deletions(-) delete mode 100644 profiles/nix/remote-builder.nix create mode 100644 profiles/remote-builder.nix (limited to 'profiles') diff --git a/profiles/defaults.nix b/profiles/defaults.nix index 80292b6..573bf68 100644 --- a/profiles/defaults.nix +++ b/profiles/defaults.nix @@ -103,6 +103,7 @@ security.sudo.wheelNeedsPassword = false; environment.systemPackages = with pkgs; [ + bottom curl dysk fd diff --git a/profiles/nix/remote-builder.nix b/profiles/nix/remote-builder.nix deleted file mode 100644 index 50d3e84..0000000 --- a/profiles/nix/remote-builder.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ config, ... }: -{ - nix.buildMachines = [ - { - hostName = "builder"; - sshUser = "builder"; - - protocol = "ssh"; - - sshKey = config.age.secrets.ssh-remote-builder.path; - - systems = [ - "x86_64-linux" - ]; - - maxJobs = 1; - - supportedFeatures = [ - "nixos-test" - ]; - } - ]; - - nix.distributedBuilds = true; - - programs.ssh.extraConfig = '' - Host builder - User builder - HostName vm-synology - IdentityFile ${config.age.secrets.ssh-remote-builder.path} - ''; -} diff --git a/profiles/remote-builder.nix b/profiles/remote-builder.nix new file mode 100644 index 0000000..3aa772f --- /dev/null +++ b/profiles/remote-builder.nix @@ -0,0 +1,32 @@ +{ config, ... }: +{ + nix.buildMachines = [ + { + hostName = "builder"; + sshUser = "builder"; + + protocol = "ssh"; + + sshKey = config.age.secrets.ssh-remote-builder.path; + + systems = [ + "x86_64-linux" + ]; + + maxJobs = 4; + + supportedFeatures = [ + "nixos-test" + ]; + } + ]; + + nix.distributedBuilds = true; + + programs.ssh.extraConfig = '' + Host builder + User builder + HostName rivendell + IdentityFile ${config.age.secrets.ssh-remote-builder.path} + ''; +} -- cgit v1.2.3