Move more data into metadata

This commit is contained in:
Greg Hellings
2025-12-16 16:48:11 -06:00
parent 1a528f10de
commit 553957c35e
5 changed files with 44 additions and 30 deletions
-18
View File
@@ -2,18 +2,8 @@
config,
lib,
pkgs,
self,
...
}:
let
builderHosts =
if self != null then
(lib.attrNames (
lib.filterAttrs (_: v: v.config.greg.remote-builder.enable) self.nixosConfigurations
))
else
[ ];
in
{
imports = [
../modules/nix-conf.nix
@@ -76,14 +66,6 @@ in
};
ssh = {
extraConfig = builtins.concatStringsSep "\n" (
lib.map (x: ''
Host ${x}-builder
Hostname ${x}.home
User remote-builder-user
'') builderHosts
);
knownHosts = {
chronicles = {
extraHostNames = [
+6 -3
View File
@@ -1,4 +1,8 @@
{ top, overlays }:
{
top,
overlays,
metadata,
}:
let
vm = args: (unstable (args // { extraMods = [ top.nixos-generators.nixosModules.all-formats ]; }));
wsl = args: (unstable (args // { extraMods = [ top.wsl.nixosModules.wsl ]; }));
@@ -12,8 +16,7 @@ let
}:
channel.lib.nixosSystem {
specialArgs = {
inherit top;
inherit (top) self;
inherit metadata top;
};
modules = [
{