nixos-config/machines/default.nix
Simon Bruder e7c6406820
Decouple machine configuration and deployment
This allows custom scripts to access machine-specific variables.
2021-01-28 17:08:08 +01:00

19 lines
312 B
Nix

let
sources = import ../nix/sources.nix;
pkgs = import sources.nixpkgs { };
lib = pkgs.lib;
in
lib.mapAttrs
(hostname: options: {
inherit hostname;
target =
if lib.hasAttr "target" options
then options.target
else "root@${hostname}";
})
{
nunotaba = { };
sayuri = { };
}