Compare commits
3 Commits
2ab9fc4ad8
...
mob/vega-b
Author | SHA1 | Date | |
---|---|---|---|
1d3487ab96 | |||
2e999e41d9 | |||
bd80062673 |
@@ -30,6 +30,16 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
borgbackup = {
|
||||||
|
module = {
|
||||||
|
name = "borgbackup";
|
||||||
|
input = "clan-core";
|
||||||
|
};
|
||||||
|
roles.client.machines."vega".settings = {
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
glom-network = {
|
glom-network = {
|
||||||
module = {
|
module = {
|
||||||
name = "zerotier";
|
name = "zerotier";
|
||||||
|
19
modules/clan/zfs-snapshot-backup/default.nix
Normal file
19
modules/clan/zfs-snapshot-backup/default.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
_class = "clan.service";
|
||||||
|
manifest.name = "zfs-snapshot-backup";
|
||||||
|
manifest.description = "Service to backup ZFS Snapshot on a remote machines";
|
||||||
|
manifest.categories = [ "System" ];
|
||||||
|
|
||||||
|
roles.default = {
|
||||||
|
perInstance.nixosModule =
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
18
modules/clan/zfs-snapshot-backup/flake-module.nix
Normal file
18
modules/clan/zfs-snapshot-backup/flake-module.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
module = lib.modules.importApply ./default.nix { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
clan.modules = {
|
||||||
|
zfs-snapshot-backup = module;
|
||||||
|
};
|
||||||
|
perSystem =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
clan.nixosTests.zfs-snapshot-backup = {
|
||||||
|
imports = [ ./tests/vm/default.nix ];
|
||||||
|
|
||||||
|
clan.modules."@clan/zfs-snapshot-backup" = module;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user