From 7bc1d7e36a6f7e3c55820db597d3b01a199649b0 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Sat, 24 May 2025 23:03:30 +0300 Subject: [PATCH] hosts: move additional config to misc/ Signed-off-by: unexplrd --- hosts/dunamis/configuration.nix | 2 +- hosts/dunamis/misc/default.nix | 5 ++++ hosts/dunamis/{ => misc}/minecraft.nix | 0 hosts/eldrid/configuration.nix | 1 + hosts/eldrid/misc/default.nix | 5 ++++ hosts/eldrid/{ => misc}/distributed-build.nix | 0 hosts/legion/configuration.nix | 1 + hosts/legion/misc/default.nix | 5 ++++ .../misc}/distributed-build.nix | 0 hosts/sarien/configuration.nix | 4 +-- hosts/sarien/misc/default.nix | 5 ++++ hosts/sarien/misc/distributed-build.nix | 30 +++++++++++++++++++ 12 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 hosts/dunamis/misc/default.nix rename hosts/dunamis/{ => misc}/minecraft.nix (100%) create mode 100644 hosts/eldrid/misc/default.nix rename hosts/eldrid/{ => misc}/distributed-build.nix (100%) create mode 100644 hosts/legion/misc/default.nix rename hosts/{sarien => legion/misc}/distributed-build.nix (100%) create mode 100644 hosts/sarien/misc/default.nix create mode 100644 hosts/sarien/misc/distributed-build.nix diff --git a/hosts/dunamis/configuration.nix b/hosts/dunamis/configuration.nix index aa31ea2..9860adf 100644 --- a/hosts/dunamis/configuration.nix +++ b/hosts/dunamis/configuration.nix @@ -9,7 +9,7 @@ self.nixosModules.desktop self.nixosModules.system ./disko - # ./minecraft.nix + ./misc ]; networking = { diff --git a/hosts/dunamis/misc/default.nix b/hosts/dunamis/misc/default.nix new file mode 100644 index 0000000..5ee61c0 --- /dev/null +++ b/hosts/dunamis/misc/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + # ./minecraft.nix + ]; +} diff --git a/hosts/dunamis/minecraft.nix b/hosts/dunamis/misc/minecraft.nix similarity index 100% rename from hosts/dunamis/minecraft.nix rename to hosts/dunamis/misc/minecraft.nix diff --git a/hosts/eldrid/configuration.nix b/hosts/eldrid/configuration.nix index 184db39..e5a3f13 100644 --- a/hosts/eldrid/configuration.nix +++ b/hosts/eldrid/configuration.nix @@ -5,6 +5,7 @@ self.nixosModules.system ./disko ./hardware + ./misc ]; networking = { diff --git a/hosts/eldrid/misc/default.nix b/hosts/eldrid/misc/default.nix new file mode 100644 index 0000000..cc8d3bd --- /dev/null +++ b/hosts/eldrid/misc/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./distributed-build.nix + ]; +} diff --git a/hosts/eldrid/distributed-build.nix b/hosts/eldrid/misc/distributed-build.nix similarity index 100% rename from hosts/eldrid/distributed-build.nix rename to hosts/eldrid/misc/distributed-build.nix diff --git a/hosts/legion/configuration.nix b/hosts/legion/configuration.nix index e568e7f..f2e85f2 100644 --- a/hosts/legion/configuration.nix +++ b/hosts/legion/configuration.nix @@ -9,6 +9,7 @@ self.nixosModules.system ./disko ./hardware + ./misc ]; networking = { diff --git a/hosts/legion/misc/default.nix b/hosts/legion/misc/default.nix new file mode 100644 index 0000000..cc8d3bd --- /dev/null +++ b/hosts/legion/misc/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./distributed-build.nix + ]; +} diff --git a/hosts/sarien/distributed-build.nix b/hosts/legion/misc/distributed-build.nix similarity index 100% rename from hosts/sarien/distributed-build.nix rename to hosts/legion/misc/distributed-build.nix diff --git a/hosts/sarien/configuration.nix b/hosts/sarien/configuration.nix index 5e98f38..e9a2bcb 100644 --- a/hosts/sarien/configuration.nix +++ b/hosts/sarien/configuration.nix @@ -9,7 +9,7 @@ self.nixosModules.config ./disko ./hardware - ./distributed-build.nix + ./misc ]; networking = { @@ -38,7 +38,7 @@ }; stylix = { enable = true; - theme = "nord"; + theme = "rose-pine-moon"; }; }; diff --git a/hosts/sarien/misc/default.nix b/hosts/sarien/misc/default.nix new file mode 100644 index 0000000..cc8d3bd --- /dev/null +++ b/hosts/sarien/misc/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./distributed-build.nix + ]; +} diff --git a/hosts/sarien/misc/distributed-build.nix b/hosts/sarien/misc/distributed-build.nix new file mode 100644 index 0000000..b093581 --- /dev/null +++ b/hosts/sarien/misc/distributed-build.nix @@ -0,0 +1,30 @@ +{ + config, + inputs, + ... +}: let + inherit (builtins) readFile; + inherit (config.networking) hostName; + inherit (config.sops) secrets; + inherit (inputs) mysecrets; + pubHost = readFile "${mysecrets}/ssh/ssh_host_ed25519_dunamis.base64"; +in { + nix = { + distributedBuilds = true; + buildMachines = [ + { + hostName = "dunamis"; + publicHostKey = pubHost; + sshKey = secrets."ssh-${hostName}-user".path; + sshUser = "nix-ssh"; + supportedFeatures = [ + "benchmark" + "big-parallel" + "kvm" + "nixos-test" + ]; + system = "x86_64-linux"; + } + ]; + }; +}