Move more data into metadata
This commit is contained in:
@@ -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
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user