Add description field to function-schema

This commit is contained in:
Qubasa
2024-05-02 14:34:58 +02:00
parent b0336e13b1
commit 142a6036fb
35 changed files with 45 additions and 28 deletions

View File

@@ -12,11 +12,11 @@
{ lib, modulesPath, ... }: { lib, modulesPath, ... }:
{ {
imports = [ 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 + "/testing/test-instrumentation.nix") # we need these 2 modules always to be able to run the tests
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
]; ];
clan.diskLayouts.singleDiskExt4.device = "/dev/vdb"; clan.disk-layouts.singleDiskExt4.device = "/dev/vdb";
environment.etc."install-successful".text = "ok"; 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, ... }: { config, lib, ... }:
{ {
options.clan.diskLayouts.singleDiskExt4 = { options.clan.disk-layouts.singleDiskExt4 = {
device = lib.mkOption { device = lib.mkOption {
type = lib.types.str; type = lib.types.str;
example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345"; example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345";
@@ -13,7 +13,7 @@
disk = { disk = {
main = { main = {
type = "disk"; type = "disk";
device = config.clan.diskLayouts.singleDiskExt4.device; device = config.clan.disk-layouts.singleDiskExt4.device;
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {

View File

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

View File

@@ -1,28 +1,34 @@
{ inputs, ... }: { inputs, ... }:
{ {
flake.clanModules = { flake.clanModules = {
diskLayouts = { disk-layouts = {
imports = [ imports = [
./diskLayouts.nix ./disk-layouts
inputs.disko.nixosModules.default inputs.disko.nixosModules.default
]; ];
}; };
borgbackup = ./borgbackup.nix; borgbackup = ./borgbackup;
ergochat = ./ergochat.nix; ergochat = ./ergochat;
deltachat = ./deltachat; deltachat = ./deltachat;
graphical = ./graphical.nix; graphical = ./graphical;
localbackup = ./localbackup.nix; localbackup = ./localbackup;
localsend = ./localsend.nix; localsend = ./localsend;
matrix-synapse = ./matrix-synapse.nix; matrix-synapse = ./matrix-synapse;
moonlight = ./moonlight.nix; moonlight = ./moonlight;
sshd = ./sshd.nix; sshd = ./sshd;
sunshine = ./sunshine.nix; sunshine = ./sunshine;
syncthing = ./syncthing; syncthing = ./syncthing;
root-password = ./root-password; root-password = ./root-password;
thelounge = ./thelounge.nix; thelounge = ./thelounge;
vm-user = ./vm-user.nix; vm-user = ./vm-user;
xfce = ./xfce.nix; xfce = ./xfce;
xfce-vm = ./xfce-vm.nix; xfce-vm = {
zt-tcp-relay = ./zt-tcp-relay.nix; 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 = { services.xserver = {
enable = true; enable = true;
displayManager.autoLogin.enable = true; displayManager.autoLogin.enable = true;

View File

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

View File

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

View File

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

View File

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

View File

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