Add deployment expr for morph for the rest
This commit is contained in:
@@ -1,15 +1,27 @@
|
|||||||
with import <nixpkgs> {};
|
|
||||||
let
|
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 = "fs1-0";
|
name = "fs1-0";
|
||||||
address = "10.1.30.10";
|
address = "10.1.30.10";
|
||||||
in {
|
in {
|
||||||
fs1-0 = {
|
fs1-0 = { config, pkgs, ... }: with pkgs; {
|
||||||
|
deployment.tags = [ "fs" ];
|
||||||
deployment.targetHost = address;
|
deployment.targetHost = address;
|
||||||
system.autoUpgrade.enable = lib.mkForce false;
|
system.autoUpgrade.enable = lib.mkForce false;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader.systemd-boot.enable = false;
|
loader.systemd-boot.enable = false;
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
version = 2;
|
||||||
|
device = "/dev/sda1";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
console = {
|
console = {
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
with import <nixpkgs> {};
|
|
||||||
let
|
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 = "fs2-0";
|
name = "fs2-0";
|
||||||
address = "10.1.8.10";
|
address = "10.1.8.10";
|
||||||
in {
|
in {
|
||||||
fs2-0 = {
|
fs2-0 = { config, pkgs, ... }: with pkgs; {
|
||||||
|
deployment.tags = [ "fs" ];
|
||||||
deployment.targetHost = address;
|
deployment.targetHost = address;
|
||||||
system.autoUpgrade.enable = lib.mkForce false;
|
system.autoUpgrade.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ in
|
|||||||
{
|
{
|
||||||
network = {
|
network = {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
description = "k0";
|
description = "k1";
|
||||||
ordering = {
|
ordering = {
|
||||||
tags = [ "master" "node" ];
|
tags = [ "master" "node" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ in
|
|||||||
{
|
{
|
||||||
network = {
|
network = {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
description = "k0";
|
description = "k2";
|
||||||
ordering = {
|
ordering = {
|
||||||
tags = [ "master" "node" ];
|
tags = [ "master" "node" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
with import <nixpkgs> {};
|
|
||||||
let
|
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";
|
name = "psql1-0";
|
||||||
address = "10.1.30.80";
|
address = "10.1.30.80";
|
||||||
in {
|
in {
|
||||||
psql1-0 = {
|
psql1-0 = { config, pkgs, ... }: with pkgs; {
|
||||||
|
deployment.tags = [ "db" ];
|
||||||
deployment.targetHost = address;
|
deployment.targetHost = address;
|
||||||
system.autoUpgrade.enable = lib.mkForce false;
|
system.autoUpgrade.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
with import <nixpkgs> {};
|
|
||||||
let
|
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 = "psql2-0";
|
name = "psql2-0";
|
||||||
address = "10.1.8.80";
|
address = "10.1.8.80";
|
||||||
in {
|
in {
|
||||||
psql2-0 = {
|
psql2-0 = { config, pkgs, ... }: with pkgs; {
|
||||||
|
deployment.tags = [ "db" ];
|
||||||
deployment.targetHost = address;
|
deployment.targetHost = address;
|
||||||
system.autoUpgrade.enable = lib.mkForce false;
|
system.autoUpgrade.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user