# This is the root configuration of the target machine. # Usable by nixos-install and used by nixops. # It is NOT copied nor usable on the target machine, # only the resulting closure is copied to the target machine. {pkgs, lib, config, options, nodes, resources, ...}: let deployment = builtins.getAttr (lib.maybeEnv "NIXOPS_DEPLOYMENT" "production") deployments; deployments = { maintenance = [ mermet/machine/apu2e4.nix mermet/hosting/lan.nix ]; production = [ mermet/machine/apu2e4.nix mermet/hosting/ptt.nix ]; staging = [ mermet/machine/virtualbox.nix mermet/hosting/localhost.nix ]; }; in { nixpkgs.overlays = import ../overlays.nix; imports = [ ../nixos/defaults.nix mermet/system.nix ] ++ deployment; }