examples: add krops deployment method

This commit is contained in:
Jonas Nick 2021-03-10 14:08:39 +01:00 committed by Erik Arvstedt
parent e017675d5e
commit fe118b28ff
No known key found for this signature in database
GPG key ID: 33312B944DD97846
5 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ extraSources, krops }:
krops.lib.evalSource [({
nixos-config.file = builtins.toFile "nixos-config" ''
{
imports = [
./configuration.nix
<nix-bitcoin/modules/deployment/krops.nix>
];
}
'';
"configuration.nix".file = toString ../configuration.nix;
# Enable `useChecksum` for sources which might be located in the nix store
# and which therefore might have static timestamps.
nixpkgs.file = {
path = toString <nixpkgs>;
useChecksum = true;
};
nix-bitcoin.file = {
path = toString <nix-bitcoin>;
useChecksum = true;
filters = [{
type = "exclude";
pattern = ".git";
}];
};
secrets.file = toString ../secrets;
} // extraSources)]