diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-09-04 02:40:24 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-09-04 02:59:46 +0200 |
commit | 34abd6afa44c620a56416bd423a2438a09bd1ce4 (patch) | |
tree | b7eef613348fcb9d8fabd19c0437430c30678152 /overlays | |
parent | f5cbc6f767ee234e9cdd53baa113d5ab26edb6d8 (diff) | |
download | Nix-34abd6afa44c620a56416bd423a2438a09bd1ce4.tar.gz Nix-34abd6afa44c620a56416bd423a2438a09bd1ce4.tar.zst Nix-34abd6afa44c620a56416bd423a2438a09bd1ce4.zip |
Migrate to morph as a replacement to nixops
The deployment tasks are now independent of any state
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/default.nix | 1 | ||||
-rw-r--r-- | overlays/morph/default.nix | 5 | ||||
-rw-r--r-- | overlays/morph/verbose_nix.patch | 12 |
3 files changed, 18 insertions, 0 deletions
diff --git a/overlays/default.nix b/overlays/default.nix index 0c7c738..7444e15 100644 --- a/overlays/default.nix +++ b/overlays/default.nix | |||
@@ -32,5 +32,6 @@ | |||
32 | doing = import ./doing; | 32 | doing = import ./doing; |
33 | khal = import ./khal; | 33 | khal = import ./khal; |
34 | nix-direnv = import ./nix-direnv; | 34 | nix-direnv = import ./nix-direnv; |
35 | morph = import ./morph; | ||
35 | } | 36 | } |
36 | // import ./python-packages | 37 | // import ./python-packages |
diff --git a/overlays/morph/default.nix b/overlays/morph/default.nix new file mode 100644 index 0000000..ee59e25 --- /dev/null +++ b/overlays/morph/default.nix | |||
@@ -0,0 +1,5 @@ | |||
1 | self: super: { | ||
2 | morph = super.morph.overrideAttrs(old: { | ||
3 | patches = (old.patches or []) ++ [ ./verbose_nix.patch ]; | ||
4 | }); | ||
5 | } | ||
diff --git a/overlays/morph/verbose_nix.patch b/overlays/morph/verbose_nix.patch new file mode 100644 index 0000000..389a79c --- /dev/null +++ b/overlays/morph/verbose_nix.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff --git a/nix/nix.go b/nix/nix.go | ||
2 | index bb63870..7fe04aa 100644 | ||
3 | --- a/nix/nix.go | ||
4 | +++ b/nix/nix.go | ||
5 | @@ -347,6 +347,7 @@ func Push(ctx *ssh.SSHContext, host Host, paths ...string) (err error) { | ||
6 | options := mkOptions(host) | ||
7 | for _, path := range paths { | ||
8 | args := []string{ | ||
9 | + "-v", | ||
10 | "copy", | ||
11 | path, | ||
12 | "--to", "ssh://" + userArg + host.TargetHost + keyArg, | ||