mirror of
https://github.com/sstent/vmimages.git
synced 2026-05-05 03:02:55 +00:00
addin ssh key
This commit is contained in:
@@ -1,25 +1,29 @@
|
||||
{ inputs, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.my;
|
||||
let sys = "x86_64-linux";
|
||||
with lib.my; let
|
||||
sys = "x86_64-linux";
|
||||
in {
|
||||
mkHost = path: attrs @ { system ? sys, ... }:
|
||||
mkHost = path: attrs @ {system ? sys, ...}:
|
||||
nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit lib inputs system; };
|
||||
specialArgs = {inherit lib inputs system;};
|
||||
modules = [
|
||||
{
|
||||
nixpkgs.pkgs = pkgs;
|
||||
networking.hostName = mkDefault (removeSuffix ".nix" (baseNameOf path));
|
||||
}
|
||||
(filterAttrs (n: v: !elem n [ "system" ]) attrs)
|
||||
../. # /default.nix
|
||||
(filterAttrs (n: v: !elem n ["system"]) attrs)
|
||||
../. # /default.nix
|
||||
(import path)
|
||||
];
|
||||
};
|
||||
|
||||
mapHosts = dir: attrs @ { system ? system, ... }:
|
||||
mapHosts = dir: attrs @ {system ? system, ...}:
|
||||
mapModules dir
|
||||
(hostPath: mkHost hostPath attrs);
|
||||
(hostPath: mkHost hostPath attrs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user