Shuffling lots of stuff around

This commit is contained in:
2021-11-29 16:40:16 -08:00
parent a71867ce94
commit c345daa524
11 changed files with 75 additions and 1449 deletions
-37
View File
@@ -1,37 +0,0 @@
lib: build-timestamp: hostname: hostOpts:
with lib;
let
pkgs-for = system: import nixpkgs {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"openssh-with-gssapi-8.4p1"
];
overlays = [
(import (fudo-pkgs + /overlay.nix))
(import (fudo-nixos + /lib/overlay.nix))
];
};
};
in fudo-nixos.nixosConfigurations.${hostname} {
} // mapAttrs (hostname: hostOpts: let
pkgs = pkgs-for hostOpts.arch;
host-ip = networks.${hostOpts.domain}.hosts.${hostname}.ipv4-address;
in fudo-nixos.nixosConfigurations.${hostname} // {
config = {
nixpkgs.pkgs = pkgs;
imports = [
(host-config hostname)
];
instance = { inherit hostname; };
deployment.targetHost = host-ip;
};
}) deployment-hosts