fix(homepage): force hosts to resolve widgets
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
8a55c6506d
commit
7c7962a941
1 changed files with 42 additions and 45 deletions
|
@ -2,60 +2,57 @@
|
||||||
inherit (config.arion) toYAML;
|
inherit (config.arion) toYAML;
|
||||||
inherit (config.sops) secrets;
|
inherit (config.sops) secrets;
|
||||||
in {
|
in {
|
||||||
# FIXME: Try to get homepage to resolve lan.nelim.org
|
arion.projects."homepage"."homepage" = {
|
||||||
#systemd.services."arion-homepage".after = ["tailscaled.service"];
|
image = ./images/homepage.nix;
|
||||||
|
restart = "always";
|
||||||
|
|
||||||
arion.projects."homepage" = {
|
ports = [
|
||||||
"homepage" = {
|
"3020:3000"
|
||||||
image = ./images/homepage.nix;
|
];
|
||||||
restart = "always";
|
|
||||||
|
|
||||||
ports = [
|
extra_hosts = ["lan.nelim.org=10.0.0.130"];
|
||||||
"3020:3000"
|
|
||||||
];
|
|
||||||
|
|
||||||
env_file = [secrets.homepage.path];
|
env_file = [secrets.homepage.path];
|
||||||
|
|
||||||
volumes = let
|
volumes = let
|
||||||
services = toYAML "services.yaml" (import ./services.nix);
|
services = toYAML "services.yaml" (import ./services.nix);
|
||||||
|
|
||||||
bookmarks = toYAML "bookmarks.yaml" {};
|
bookmarks = toYAML "bookmarks.yaml" {};
|
||||||
|
|
||||||
settings = toYAML "settings.yaml" {
|
settings = toYAML "settings.yaml" {
|
||||||
# FIXME: title not working
|
# FIXME: title not working
|
||||||
title = "bruh";
|
title = "bruh";
|
||||||
theme = "dark";
|
theme = "dark";
|
||||||
color = "gray";
|
color = "gray";
|
||||||
target = "_self";
|
target = "_self";
|
||||||
|
|
||||||
layout.video = {
|
layout.video = {
|
||||||
style = "columns";
|
style = "columns";
|
||||||
row = 4;
|
row = 4;
|
||||||
# columns = 2;
|
# columns = 2;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
widgets = toYAML "widgets.yaml" [
|
widgets = toYAML "widgets.yaml" [
|
||||||
{
|
{
|
||||||
resources = {
|
resources = {
|
||||||
cpu = true;
|
cpu = true;
|
||||||
memory = true;
|
memory = true;
|
||||||
disk = "/";
|
disk = "/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
search = {
|
search = {
|
||||||
provider = "duckduckgo";
|
provider = "duckduckgo";
|
||||||
target = "_blank";
|
target = "_blank";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
|
||||||
in [
|
|
||||||
"${bookmarks}:/app/config/bookmarks.yaml:ro"
|
|
||||||
"${services}:/app/config/services.yaml:ro"
|
|
||||||
"${settings}:/app/config/settings.yaml:ro"
|
|
||||||
"${widgets}:/app/config/widgets.yaml:ro"
|
|
||||||
];
|
];
|
||||||
};
|
in [
|
||||||
|
"${bookmarks}:/app/config/bookmarks.yaml:ro"
|
||||||
|
"${services}:/app/config/services.yaml:ro"
|
||||||
|
"${settings}:/app/config/settings.yaml:ro"
|
||||||
|
"${widgets}:/app/config/widgets.yaml:ro"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue