Add deployment expr for morph for the rest

This commit is contained in:
Jonas Juselius
2021-07-01 12:53:33 +02:00
parent 2d5b2d1e9d
commit 0226532e2e
6 changed files with 42 additions and 10 deletions

View File

@@ -1,9 +1,16 @@
with import <nixpkgs> {};
let
# Pin the deployment package-set to a specific version of nixpkgs
# pkgs = import (builtins.fetchTarball {
# url = "https://github.com/NixOS/nixpkgs/archive/e9148dc1c30e02aae80cc52f68ceb37b772066f3.tar.gz";
# sha256 = "1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36";
# }) {};
pkgs = import <nixpkgs> {};
name = "psql1-0";
address = "10.1.30.80";
in {
psql1-0 = {
psql1-0 = { config, pkgs, ... }: with pkgs; {
deployment.tags = [ "db" ];
deployment.targetHost = address;
system.autoUpgrade.enable = lib.mkForce false;