nixos/deploy/default.nix

24 lines
514 B
Nix
Raw Normal View History

let
2021-11-22 14:12:43 +00:00
sources = import ../config/sources;
in import "${sources.nixus}" {} ({ config, ... }: {
2021-11-22 14:12:43 +00:00
defaults = { name, ... }: {
configuration = { lib, ... }: {
networking.hostName = lib.mkDefault name;
};
2021-11-22 14:12:43 +00:00
# use our nixpkgs from niv
nixpkgs = sources.nixpkgs;
};
2021-11-22 14:12:43 +00:00
nodes = {
mail = { lib, config, ... }: {
host = "deploy-nix@nixaalb.org";
2021-11-22 14:12:43 +00:00
configuration = ../config/hosts/capetillo/configuration.nix;
switchTimeout = 300;
successTimeout = 300;
#ignoreFailingSystemdUnits = true;
};
};
})