parent
be26969d9b
commit
a3070ba52d
4 changed files with 42 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./homepage
|
||||
./samba.nix
|
||||
];
|
||||
}
|
||||
|
|
20
hosts/nixedo/services/homepage/default.nix
Normal file
20
hosts/nixedo/services/homepage/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
services = {
|
||||
homepage-dashboard = {
|
||||
enable = true;
|
||||
listenPort = 8097;
|
||||
openFirewall = true;
|
||||
|
||||
services = import ./services.nix;
|
||||
widgets = import ./widgets.nix;
|
||||
};
|
||||
|
||||
nginx.virtualHosts."nixedo.oliverdavies.uk" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
locations."/".proxyPass =
|
||||
"http://localhost:${toString config.services.homepage-dashboard.listenPort}";
|
||||
};
|
||||
};
|
||||
}
|
12
hosts/nixedo/services/homepage/services.nix
Normal file
12
hosts/nixedo/services/homepage/services.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"Media" = [
|
||||
{
|
||||
"Jellyfin" = {
|
||||
description = "Jellyfin";
|
||||
href = "https://jellyfin.oliverdavies.uk";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
]
|
9
hosts/nixedo/services/homepage/widgets.nix
Normal file
9
hosts/nixedo/services/homepage/widgets.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
{
|
||||
resources = {
|
||||
cpu = true;
|
||||
disk = "/";
|
||||
memory = true;
|
||||
};
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue