mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
refactor: abstacted records
This commit is contained in:
parent
64572cb106
commit
06a684fa32
42 changed files with 211 additions and 202 deletions
|
@ -176,10 +176,106 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
people = import ./users;
|
||||
services = import ./instances;
|
||||
machines = import ./devices;
|
||||
aesthetics = import ./themes;
|
||||
};
|
||||
config =
|
||||
let
|
||||
moduleFunctions = {
|
||||
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"
|
||||
];
|
||||
sshfsOptions = [
|
||||
"allow_other"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
"reconnect"
|
||||
"user"
|
||||
"ServerAliveInterval=15"
|
||||
"IdentityFile=/var/run/secrets/ssh/private"
|
||||
];
|
||||
fileModeAndDirMode = [
|
||||
"file_mode=0644"
|
||||
"dir_mode=0755"
|
||||
];
|
||||
userIdForUser0 = [
|
||||
"uid=1000"
|
||||
];
|
||||
userIdForUser1 = [
|
||||
"uid=1002"
|
||||
];
|
||||
dummy = [
|
||||
];
|
||||
ceresStorageDriveName = "NAS1";
|
||||
ceresIP = "192.168.50.140";
|
||||
deimosIP = "192.168.50.142";
|
||||
marsIP = "192.168.50.218";
|
||||
phoneIP = "192.168.50.243";
|
||||
phobosIP = "192.168.50.180";
|
||||
synologyIP = "192.168.50.210";
|
||||
brotherIP = "192.168.50.195";
|
||||
externalIP = "24.76.173.0";
|
||||
};
|
||||
|
||||
instancesFunctions = {
|
||||
domain0 = "cloudbert.fun";
|
||||
domain1 = "the-nutrivore.social";
|
||||
domain2 = "the-nutrivore.com";
|
||||
domain3 = "uprootnutrition.com";
|
||||
servicePath = "/mnt/media/NAS1";
|
||||
sopsPath = "/var/lib/secrets";
|
||||
sslPath = "/var/lib/acme";
|
||||
varLib = "/var/lib";
|
||||
dummy = "";
|
||||
};
|
||||
|
||||
themesFunctions = {
|
||||
brogrammer = "brogrammer";
|
||||
catppuccin-frappe = "catppuccin-frappe";
|
||||
catppuccin-latte = "catppuccin-latte";
|
||||
catppuccin-macchiato = "catppuccin-macchiato";
|
||||
catppuccin-mocha = "catppuccin-mocha";
|
||||
chalk = "chalk";
|
||||
deep-oceanic-next = "deep-oceanic-next";
|
||||
dracula = "dracula";
|
||||
espresso = "espresso";
|
||||
flat = "flat";
|
||||
framer = "framer";
|
||||
github = "github";
|
||||
hardcore = "hardcore";
|
||||
one-black = "one-black";
|
||||
one-dark = "one-dark";
|
||||
one-light = "one light";
|
||||
sparky = "sparky";
|
||||
};
|
||||
|
||||
usersFunctions = {
|
||||
user0 = "nick";
|
||||
user0Label = "Nick";
|
||||
user1 = "streaming";
|
||||
user1Label = "Streaming";
|
||||
};
|
||||
};
|
||||
|
||||
inheritFunctions = { inherit moduleFunctions; };
|
||||
in
|
||||
{
|
||||
people = import ./users inheritFunctions;
|
||||
services = import ./instances inheritFunctions;
|
||||
machines = import ./devices inheritFunctions;
|
||||
aesthetics = import ./themes inheritFunctions;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue