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,15 +1,27 @@
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 = "fs1-0";
address = "10.1.30.10";
in {
fs1-0 = {
fs1-0 = { config, pkgs, ... }: with pkgs; {
deployment.tags = [ "fs" ];
deployment.targetHost = address;
system.autoUpgrade.enable = lib.mkForce false;
boot = {
loader.systemd-boot.enable = false;
loader.efi.canTouchEfiVariables = true;
loader.grub = {
enable = true;
version = 2;
device = "/dev/sda1";
};
};
console = {