aboutsummaryrefslogtreecommitdiff
path: root/examples/simple
diff options
context:
space:
mode:
authornotgne22020-09-29 21:27:52 -0700
committernotgne22020-09-29 21:27:52 -0700
commit05a997558400f093c7278decd6300ce09044227b (patch)
tree9600f882d720a9d00de7c28fad6993d2b5fc5007 /examples/simple
parenta0328dbcf76b7c551e92fd25060cfc7d7e4d9ebe (diff)
parent8d21dd335e5259dadf832a5d1a7c72b9dd1f4400 (diff)
Merge branch 'master' of github.com:notgne2/deploy-rs into master
Diffstat (limited to '')
-rw-r--r--examples/simple/flake.lock.license3
-rw-r--r--examples/simple/flake.nix16
2 files changed, 12 insertions, 7 deletions
diff --git a/examples/simple/flake.lock.license b/examples/simple/flake.lock.license
new file mode 100644
index 0000000..9e9897d
--- /dev/null
+++ b/examples/simple/flake.lock.license
@@ -0,0 +1,3 @@
+SPDX-FileCopyrightText: 2020 Serokell <https://serokell.io/>
+
+SPDX-License-Identifier: MPL-2.0 \ No newline at end of file
diff --git a/examples/simple/flake.nix b/examples/simple/flake.nix
index 6e516d3..800363f 100644
--- a/examples/simple/flake.nix
+++ b/examples/simple/flake.nix
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2020 Serokell <https://serokell.io/>
+#
+# SPDX-License-Identifier: MPL-2.0
+
{
description = "Deploy GNU hello to localhost";
@@ -5,19 +9,17 @@
deploy.nodes.example = {
hostname = "localhost";
profiles.hello = {
- user = "test_deploy";
+ user = "balsoft";
path = nixpkgs.legacyPackages.x86_64-linux.hello;
# Just to test that it's working
activate = "$PROFILE/bin/hello";
};
};
- checks = builtins.mapAttrs
- (_: pkgs: {
- jsonschema = pkgs.runCommandNoCC "jsonschema-deploy-simple" { }
- "${pkgs.python3.pkgs.jsonschema}/bin/jsonschema -i ${
+ checks = builtins.mapAttrs (_: pkgs: {
+ jsonschema = pkgs.runCommandNoCC "jsonschema-deploy-simple" { }
+ "${pkgs.python3.pkgs.jsonschema}/bin/jsonschema -i ${
pkgs.writeText "deploy.json" (builtins.toJSON self.deploy)
} ${../../interface/deploy.json} && touch $out";
- })
- nixpkgs.legacyPackages;
+ }) nixpkgs.legacyPackages;
};
}