mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 14:56:43 +03:00
21 lines
514 B
Nix
21 lines
514 B
Nix
let
|
|
# FIXME:
|
|
target = "root@HOSTNAME_OR_IP_ADDRESS";
|
|
|
|
extraSources = {
|
|
"hardware-configuration.nix".file = toString ../hardware-configuration.nix;
|
|
};
|
|
|
|
krops = (import <nix-bitcoin> {}).krops;
|
|
in
|
|
krops.pkgs.krops.writeDeploy "deploy" {
|
|
inherit target;
|
|
|
|
source = import ./sources.nix { inherit extraSources krops; };
|
|
|
|
# Avoid having to create a sentinel file.
|
|
# Otherwise /var/src/.populate must be created on the target node to signal krops
|
|
# that it is allowed to deploy.
|
|
force = true;
|
|
}
|