mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 21:42:16 -06:00
Compare commits
No commits in common. "f8a430380a10f896591ab46b2726d012de297685" and "247ac04114be1071eb1afb950b564dd7a86ecdf8" have entirely different histories.
f8a430380a
...
247ac04114
4 changed files with 31 additions and 37 deletions
|
|
@ -31,9 +31,6 @@ in
|
||||||
"mast"
|
"mast"
|
||||||
"md"
|
"md"
|
||||||
];
|
];
|
||||||
ports = {
|
|
||||||
port0 = 80;
|
|
||||||
};
|
|
||||||
interface = {
|
interface = {
|
||||||
id = "vm-${name}";
|
id = "vm-${name}";
|
||||||
mac = "02:00:00:00:55:05";
|
mac = "02:00:00:00:55:05";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
{ flake, ... }:
|
{ flake, ... }:
|
||||||
let
|
let
|
||||||
inherit (flake.config.machines.devices) mars;
|
inherit (flake.config.machines.devices)
|
||||||
inherit (flake.config.services) instances;
|
ceres
|
||||||
|
mars
|
||||||
|
;
|
||||||
|
inherit (flake.config.services)
|
||||||
|
instances
|
||||||
|
;
|
||||||
|
|
||||||
makeBookmarks =
|
makeBookmarks =
|
||||||
{
|
{
|
||||||
|
|
@ -16,24 +21,23 @@ let
|
||||||
keyword = instances.${name}.short;
|
keyword = instances.${name}.short;
|
||||||
}) (builtins.map (service: instances.${service}.name) services);
|
}) (builtins.map (service: instances.${service}.name) services);
|
||||||
|
|
||||||
instanceList = [
|
|
||||||
instances.forgejo.name
|
|
||||||
instances.jellyfin.name
|
|
||||||
instances.mastodon.name
|
|
||||||
instances.vaultwarden.name
|
|
||||||
instances.firefly-iii.name
|
|
||||||
];
|
|
||||||
bookmarkConfigs = [
|
bookmarkConfigs = [
|
||||||
{
|
{
|
||||||
suffix = "(Remote)";
|
suffix = "(Remote)";
|
||||||
urlTemplate = name: "https://${instances.${name}.domains.url0}";
|
urlTemplate = name: "https://${instances.${name}.domains.url0}";
|
||||||
services = instanceList;
|
services = [
|
||||||
}
|
instances.audiobookshelf.name
|
||||||
{
|
instances.forgejo.name
|
||||||
suffix = "(Server)";
|
instances.glance.name
|
||||||
urlTemplate =
|
instances.jellyfin.name
|
||||||
name: "http://${instances.${name}.interface.ip}:${builtins.toString instances.${name}.ports.port0}";
|
instances.mastodon.name
|
||||||
services = instanceList;
|
instances.ollama.name
|
||||||
|
instances.opencloud.name
|
||||||
|
instances.searx.name
|
||||||
|
instances.vaultwarden.name
|
||||||
|
instances.prompter.name
|
||||||
|
instances.firefly-iii.name
|
||||||
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
suffix = "(Desktop)";
|
suffix = "(Desktop)";
|
||||||
|
|
@ -43,6 +47,15 @@ let
|
||||||
instances.syncthing.name
|
instances.syncthing.name
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
suffix = "(Server)";
|
||||||
|
urlTemplate =
|
||||||
|
name: "http://${ceres.ip.address0}:${builtins.toString instances.${name}.ports.port0}";
|
||||||
|
services = [
|
||||||
|
instances.jellyfin.name
|
||||||
|
instances.firefly-iii.name
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
generatedBookmarks = builtins.concatLists (builtins.map makeBookmarks bookmarkConfigs);
|
generatedBookmarks = builtins.concatLists (builtins.map makeBookmarks bookmarkConfigs);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ in
|
||||||
plasma
|
plasma
|
||||||
plymouth
|
plymouth
|
||||||
sddm
|
sddm
|
||||||
tuios
|
|
||||||
wireguard
|
wireguard
|
||||||
microvm
|
microvm
|
||||||
defenseio
|
defenseio
|
||||||
|
|
|
||||||
|
|
@ -41,14 +41,8 @@ in
|
||||||
autostart = true;
|
autostart = true;
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
ceresCpu = 45;
|
|
||||||
erisCpu = 5;
|
|
||||||
marsCpu = 20;
|
|
||||||
deimosCpu = 5;
|
|
||||||
phobosCpu = 5;
|
|
||||||
|
|
||||||
macAddress = "02:00:00:00:00:${macOctet}";
|
macAddress = "02:00:00:00:00:${macOctet}";
|
||||||
workers = deviceLogic ceresCpu erisCpu marsCpu deimosCpu phobosCpu;
|
workers = deviceLogic 35 4 18 5 6;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
|
@ -73,16 +67,7 @@ in
|
||||||
mac = macAddress;
|
mac = macAddress;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
mem =
|
mem = deviceLogic 45000 5120 22000 6144 7168;
|
||||||
let
|
|
||||||
num = 1024;
|
|
||||||
ceresRam = num * 50;
|
|
||||||
erisRam = num * 7;
|
|
||||||
marsRam = num * 24;
|
|
||||||
deimosRam = num * 7;
|
|
||||||
phobosRam = num * 7;
|
|
||||||
in
|
|
||||||
deviceLogic ceresRam erisRam marsRam deimosRam phobosRam;
|
|
||||||
shares = [
|
shares = [
|
||||||
{
|
{
|
||||||
mountPoint = "/nix/.ro-store";
|
mountPoint = "/nix/.ro-store";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue