1
0
forked from clan/clan-core

Add description field to function-schema

This commit is contained in:
Luis Hebendanz 2024-05-02 14:34:58 +02:00
parent a09e680fa0
commit b95d95554a
35 changed files with 45 additions and 28 deletions

View File

@ -12,11 +12,11 @@
{ lib, modulesPath, ... }:
{
imports = [
self.clanModules.diskLayouts
self.clanModules.disk-layouts
(modulesPath + "/testing/test-instrumentation.nix") # we need these 2 modules always to be able to run the tests
(modulesPath + "/profiles/qemu-guest.nix")
];
clan.diskLayouts.singleDiskExt4.device = "/dev/vdb";
clan.disk-layouts.singleDiskExt4.device = "/dev/vdb";
environment.etc."install-successful".text = "ok";

View File

@ -0,0 +1,2 @@
BorgBackup is an efficient backup program that uses data deduplication to store only changes, making it ideal for daily backups. It offers optional compression and authenticated encryption, ensuring secure backups even to untrusted targets.
---

View File

@ -0,0 +1 @@
---

View File

@ -1,6 +1,6 @@
{ config, lib, ... }:
{
options.clan.diskLayouts.singleDiskExt4 = {
options.clan.disk-layouts.singleDiskExt4 = {
device = lib.mkOption {
type = lib.types.str;
example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345";
@ -13,7 +13,7 @@
disk = {
main = {
type = "disk";
device = config.clan.diskLayouts.singleDiskExt4.device;
device = config.clan.disk-layouts.singleDiskExt4.device;
content = {
type = "gpt";
partitions = {

View File

@ -0,0 +1 @@
---

View File

@ -1,28 +1,34 @@
{ inputs, ... }:
{
flake.clanModules = {
diskLayouts = {
disk-layouts = {
imports = [
./diskLayouts.nix
./disk-layouts
inputs.disko.nixosModules.default
];
};
borgbackup = ./borgbackup.nix;
ergochat = ./ergochat.nix;
borgbackup = ./borgbackup;
ergochat = ./ergochat;
deltachat = ./deltachat;
graphical = ./graphical.nix;
localbackup = ./localbackup.nix;
localsend = ./localsend.nix;
matrix-synapse = ./matrix-synapse.nix;
moonlight = ./moonlight.nix;
sshd = ./sshd.nix;
sunshine = ./sunshine.nix;
graphical = ./graphical;
localbackup = ./localbackup;
localsend = ./localsend;
matrix-synapse = ./matrix-synapse;
moonlight = ./moonlight;
sshd = ./sshd;
sunshine = ./sunshine;
syncthing = ./syncthing;
root-password = ./root-password;
thelounge = ./thelounge.nix;
vm-user = ./vm-user.nix;
xfce = ./xfce.nix;
xfce-vm = ./xfce-vm.nix;
zt-tcp-relay = ./zt-tcp-relay.nix;
thelounge = ./thelounge;
vm-user = ./vm-user;
xfce = ./xfce;
xfce-vm = {
imports = [
./vm-user
./graphical
./xfce-vm
];
};
zt-tcp-relay = ./zt-tcp-relay;
};
}

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -1,9 +1,4 @@
{
imports = [
./vm-user.nix
./graphical.nix
];
services.xserver = {
enable = true;
displayManager.autoLogin.enable = true;

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1 @@
---

View File

@ -55,7 +55,7 @@ nav:
- clanModules:
- reference/clanModules/borgbackup.md
- reference/clanModules/deltachat.md
- reference/clanModules/diskLayouts.md
- reference/clanModules/disk-layouts.md
- reference/clanModules/ergochat.md
- reference/clanModules/graphical.md
- reference/clanModules/localbackup.md

View File

@ -46,7 +46,7 @@
checks = {
module-schema = pkgs.runCommand "schema-checks" { } ''
${pkgs.check-jsonschema}/bin/check-jsonschema \
--check-metaschema ${packages.module-schema}
--check-metaschema --fill-defaults ${packages.module-schema}
touch $out
'';
};

View File

@ -2,7 +2,7 @@
{
imports = [
clan-core.clanModules.sshd
clan-core.clanModules.diskLayouts
clan-core.clanModules.disk-layouts
clan-core.clanModules.root-password
];
}