forked from clan/clan-core
Add description field to function-schema
This commit is contained in:
parent
a09e680fa0
commit
b95d95554a
@ -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";
|
||||||
|
|
||||||
|
2
clanModules/borgbackup/README.md
Normal file
2
clanModules/borgbackup/README.md
Normal 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.
|
||||||
|
---
|
1
clanModules/disk-layouts/README.md
Normal file
1
clanModules/disk-layouts/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
@ -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 = {
|
1
clanModules/ergochat/README.md
Normal file
1
clanModules/ergochat/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
1
clanModules/graphical/README.md
Normal file
1
clanModules/graphical/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/localbackup/README.md
Normal file
1
clanModules/localbackup/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/localsend/README.md
Normal file
1
clanModules/localsend/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/matrix-synapse/README.md
Normal file
1
clanModules/matrix-synapse/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/moonlight/README.md
Normal file
1
clanModules/moonlight/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/sshd/README.md
Normal file
1
clanModules/sshd/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/sunshine/README.md
Normal file
1
clanModules/sunshine/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/thelounge/README.md
Normal file
1
clanModules/thelounge/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/vm-user/README.md
Normal file
1
clanModules/vm-user/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/xfce-vm/README.md
Normal file
1
clanModules/xfce-vm/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
@ -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;
|
1
clanModules/xfce/README.md
Normal file
1
clanModules/xfce/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
1
clanModules/zt-tcp-relay/README.md
Normal file
1
clanModules/zt-tcp-relay/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
---
|
@ -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
|
||||||
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user