feat: expanded all lists

This commit is contained in:
Nick 2025-01-08 19:06:14 -06:00
parent 59cc199722
commit bb0b55b011
144 changed files with 1798 additions and 507 deletions

View file

@ -3,27 +3,57 @@ let
printerPath = configPath + /printers;
devicesFunctions = {
ownerWriteOthersReadMask = ["fmask=0022" "dmask=0022"];
ownerExclusiveReadWriteMask = ["fmask=0077" "dmask=0077"];
readWritePermissions = ["rw"];
sambaPermissions = ["rw" "gid=100" "vers=3.0" "x-systemd.automount" "x-systemd.requires=network-online.target"];
fileModeAndDirMode = ["file_mode=0644" "dir_mode=0755"];
userIdForUser0 = ["uid=1000"];
userIdForUser1 = ["uid=1001"];
dummy = [];
ownerWriteOthersReadMask = [
"fmask=0022"
"dmask=0022"
];
ownerExclusiveReadWriteMask = [
"fmask=0077"
"dmask=0077"
];
readWritePermissions = [
"rw"
];
sambaPermissions = [
"rw"
"gid=100"
"vers=3.0"
"x-systemd.automount"
"x-systemd.requires=network-online.target"
];
fileModeAndDirMode = [
"file_mode=0644"
"dir_mode=0755"
];
userIdForUser0 = [
"uid=1000"
];
userIdForUser1 = [
"uid=1001"
];
dummy = [
];
};
deviceswithFunctions = builtins.listToAttrs (map (name: {
name = builtins.substring 0 (builtins.stringLength name - 4) name; # Remove the last 4 characters (".nix")
value = import (configPath + "/${name}") {inherit devicesFunctions;};
name = builtins.substring 0 (builtins.stringLength name - 4) name;
value = import (configPath + "/${name}") {
inherit
devicesFunctions
;
};
})
(builtins.filter (name:
builtins.match ".*\\.nix$" name != null) (builtins.attrNames
(builtins.readDir configPath))));
devicesPrinters = builtins.listToAttrs (map (name: {
name = builtins.substring 0 (builtins.stringLength name - 4) name; # Remove the last 4 characters (".nix")
value = import (printerPath + "/${name}") {inherit devicesFunctions;};
name = builtins.substring 0 (builtins.stringLength name - 4) name;
value = import (printerPath + "/${name}") {
inherit
devicesFunctions
;
};
})
(builtins.filter (name:
builtins.match ".*\\.nix$" name != null) (builtins.attrNames

View file

@ -1,5 +1,9 @@
{instancesFunctions}: let
inherit (instancesFunctions) sslPath sopsPath;
inherit
(instancesFunctions)
sslPath
sopsPath
;
acmeLabel = "Acme";
acmeName = "acme";

View file

@ -1,5 +1,8 @@
{instancesFunctions}: let
inherit (instancesFunctions) sopsPath;
inherit
(instancesFunctions)
sopsPath
;
caddyLabel = "Caddy";
caddyName = "caddy";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain1 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain1
servicePath
sslPath
sopsPath
;
forgejoLabel = "Forgejo";
forgejoName = "forgejo";

View file

@ -1,5 +1,13 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain0 jellyfinLabel jellyfinName servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain0
jellyfinLabel
jellyfinName
servicePath
sslPath
sopsPath
;
in {
label = jellyfinLabel;
name = jellyfinName;

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain1 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain1
servicePath
sslPath
sopsPath
;
mastodonLabel = "Mastodon";
mastodonName = "mastodon";

View file

@ -1,5 +1,9 @@
{instancesFunctions}: let
inherit (instancesFunctions) servicePath sopsPath;
inherit
(instancesFunctions)
servicePath
sopsPath
;
matrixLabel = "Matrix";
matrixName = "matrix";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain0 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
minecraftLabel = "Minecraft";
minecraftName = "minecraft";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain1 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain1
servicePath
sslPath
sopsPath
;
nextcloudLabel = "Nextcloud";
nextcloudName = "nextcloud";

View file

@ -1,5 +1,8 @@
{instancesFunctions}: let
inherit (instancesFunctions) dummy;
inherit
(instancesFunctions)
dummy
;
nginxLabel = "Ngnix";
nginxName = "nginx";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain0 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
ollamaLabel = "Ollama";
ollamaName = "ollama";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain1 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain1
servicePath
sslPath
sopsPath
;
owncastLabel = "Owncast";
owncastName = "owncast";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain3 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain3
servicePath
sslPath
sopsPath
;
peertubeLabel = "PeerTube";
peertubeName = "peertube";

View file

@ -1,5 +1,9 @@
{instancesFunctions}: let
inherit (instancesFunctions) servicePath sopsPath;
inherit
(instancesFunctions)
servicePath
sopsPath
;
postgresLabel = "PostgreSQL";
postgresName = "postgres";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) jellyfinLabel jellyfinName servicePath sopsPath;
inherit
(instancesFunctions)
jellyfinLabel
jellyfinName
servicePath
sopsPath
;
sambaLabel = "Samba";
sambaName = "samba";

View file

@ -1,5 +1,10 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain0 sslPath sopsPath;
inherit
(instancesFunctions)
domain0
sslPath
sopsPath
;
syncthingLabel = "Syncthing";
syncthingName = "syncthing";

View file

@ -1,5 +1,8 @@
{instancesFunctions}: let
inherit (instancesFunctions) sopsPath;
inherit
(instancesFunctions)
sopsPath
;
synologyLabel = "Synology";
synologyName = "synology";

View file

@ -1,5 +1,10 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain3 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain3
sslPath
sopsPath
;
upRootNutritionLabel = "upRootNutrition";
upRootNutritionName = "uprootnutrition";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain0 servicePath sslPath sopsPath;
inherit
(instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
vaultwardenLabel = "Vaultwarden";
vaultwardenName = "vaultwarden";

View file

@ -1,5 +1,11 @@
{instancesFunctions}: let
inherit (instancesFunctions) domain0 domain1 domain2 domain3;
inherit
(instancesFunctions)
domain0
domain1
domain2
domain3
;
in {
domains = {
url0 = domain0;

View file

@ -17,7 +17,11 @@ let
instances = builtins.listToAttrs (map (name: {
name = builtins.substring 0 (builtins.stringLength name - 4) name;
value = import (configPath + "/${name}") {inherit instancesFunctions;};
value = import (configPath + "/${name}") {
inherit
instancesFunctions
;
};
})
(builtins.filter (name:
builtins.match ".*\\.nix$" name != null) (builtins.attrNames

View file

@ -1,5 +1,7 @@
{user0}: let
inherit user0;
inherit
user0
;
in {
name = "Nick";
aliases = {

View file

@ -1,5 +1,7 @@
{user1}: let
inherit user1;
inherit
user1
;
in {
name = "Garnet";
email = {

View file

@ -9,7 +9,15 @@ in {
user1
;
users = {
"${user0}" = import (configPath + "/user0.nix") {inherit user0;};
"${user1}" = import (configPath + "/user1.nix") {inherit user1;};
"${user0}" = import (configPath + "/user0.nix") {
inherit
user0
;
};
"${user1}" = import (configPath + "/user1.nix") {
inherit
user1
;
};
};
}