Compare commits

4 Commits

Author SHA1 Message Date
64df7abad5 feat(hypr): clean up 2025-10-15 19:38:47 +02:00
8efa649d47 feat(homepage-dashboard): change vaultwarden icon 2025-10-15 18:01:39 +02:00
2dc09e23a0 chore(jellyseerr): typo 2025-10-15 17:50:11 +02:00
8fd2a7d9ad feat(homepage-dashboard): reintroduce path option 2025-10-15 17:49:30 +02:00
5 changed files with 81 additions and 74 deletions

View File

@@ -91,7 +91,7 @@
exposure = "local"; exposure = "local";
port = 9696; port = 9696;
homepage = { homepage = {
name = "prowlarr"; name = "Prowlarr";
description = "PVR indexer"; description = "PVR indexer";
icon = "prowlarr.svg"; icon = "prowlarr.svg";
category = "Arr"; category = "Arr";
@@ -153,7 +153,7 @@
homepage = { homepage = {
name = "Jellyseerr"; name = "Jellyseerr";
description = "Media request and discovery manager"; description = "Media request and discovery manager";
icon = "jellyserr.svg"; icon = "jellyseerr.svg";
category = "Arr"; category = "Arr";
}; };
}; };
@@ -209,7 +209,7 @@
homepage = { homepage = {
name = "Vaultwarden"; name = "Vaultwarden";
description = "Password manager"; description = "Password manager";
icon = "vaultwarden.svg"; icon = "vaultwarden-light.svg";
category = "Services"; category = "Services";
}; };
}; };

View File

@@ -1,24 +1,18 @@
{ {
inputs,
pkgs,
lib, lib,
osConfig, osConfig,
clib, clib,
... ...
}: let }: let
inherit (lib) mkIf mkEnableOption; inherit (lib) mkIf;
cfg = osConfig.nixos.programs.hyprland; cfg = osConfig.nixos.programs.hyprland;
hyprlockFlake = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
# hyprlockPkg = pkgs.hyprlock;
#
bg = osConfig.settings.theme.background; bg = osConfig.settings.theme.background;
inherit (clib.theme.bgs) resolve; inherit (clib.theme.bgs) resolve;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
package = hyprlockFlake;
settings = { settings = {
general = { general = {
# disable_loading_bar = true; # disable_loading_bar = true;

View File

@@ -1,22 +1,14 @@
{ {
osConfig, osConfig,
lib, lib,
pkgs,
inputs,
... ...
}: }: let
let
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.nixos.programs.hyprland; cfg = osConfig.nixos.programs.hyprland;
in {
hypridleFlake = inputs.hypridle.packages.${pkgs.system}.hypridle;
# hypridlePkg = pkgs.hypridle;
in
{
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.hypridle = { services.hypridle = {
enable = true; enable = true;
package = hypridleFlake;
settings = { settings = {
general = { general = {
lock_cmd = "hyprlock"; lock_cmd = "hyprlock";

View File

@@ -1,7 +1,5 @@
{ {
lib, lib,
pkgs,
inputs,
osConfig, osConfig,
clib, clib,
... ...
@@ -9,7 +7,6 @@
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.nixos.programs.hyprland; cfg = osConfig.nixos.programs.hyprland;
hyprpaperFlake = inputs.hyprpaper.packages.${pkgs.system}.default;
bg = osConfig.settings.theme.background; bg = osConfig.settings.theme.background;
bgs = clib.theme.bgs; bgs = clib.theme.bgs;
@@ -35,7 +32,6 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
package = hyprpaperFlake;
settings = { settings = {
ipc = "on"; ipc = "on";

View File

@@ -24,6 +24,13 @@ in {
environmentFile = config.age.secrets.homepageEnvironment.path; environmentFile = config.age.secrets.homepageEnvironment.path;
settings = { settings = {
color = "stone";
theme = "dark";
headerStyle = "clean";
statusStyle = "dot";
hideVersion = true;
useEqualHeights = true;
layout = [ layout = [
{ {
Glances = { Glances = {
@@ -57,10 +64,6 @@ in {
}; };
} }
]; ];
headerStyle = "clean";
statusStyle = "dot";
hideVersion = "true";
}; };
widgets = [ widgets = [
@@ -117,80 +120,102 @@ in {
"${service.homepage.name}" = { "${service.homepage.name}" = {
icon = service.homepage.icon; icon = service.homepage.icon;
description = service.homepage.description; description = service.homepage.description;
href = "https://${domain}"; href = "https://${service.subdomain}.${domain}${service.homepage.path or ""}";
siteMonitor = "https://${domain}"; siteMonitor = "https://${service.subdomain}.${domain}${x.homepage.path or ""}";
}; };
}); });
}) })
++ [ ++ [
{ {
Glances = let Glances = let
port = toString config.services.glances.port; glancesShared = {
type = "glances";
url = "http://localhost:${toString config.services.glances.port}";
chart = true;
version = 4;
};
in [ in [
{ {
Info = { Memory = {
widget = { widget =
type = "glances"; glancesShared
url = "http://localhost:${port}"; // {
metric = "info"; metric = "memory";
chart = false; refreshInterval = 2000;
version = 4; pointsLimit = 30;
}; };
}; };
} }
{
"CPU Usage" = {
widget =
glancesShared
// {
metric = "cpu";
refreshInterval = 2000;
pointsLimit = 30;
};
};
}
{ {
"CPU Temp" = { "CPU Temp" = {
widget = { widget =
type = "glances"; glancesShared
url = "http://localhost:${port}"; // {
metric = "sensor:Tctl"; metric = "sensor:Tctl";
chart = false; refreshInterval = 5000;
version = 4; pointsLimit = 20;
}; };
}; };
} }
{ {
"GPU Radeon" = { "GPU Radeon" = {
widget = { widget =
type = "glances"; glancesShared
url = "http://localhost:${port}"; // {
metric = "sensor:junction"; metric = "sensor:junction";
chart = false; };
version = 4;
};
}; };
} }
{ {
"GPU Intel" = { "GPU Intel" = {
widget = { widget =
type = "glances"; glancesShared
url = "http://localhost:${port}"; // {
metric = "sensor:pkg"; metric = "sensor:pkg";
chart = false; };
version = 4;
};
}; };
} }
{
"ZFS Pool" = {
widget =
glancesShared
// {
metric = "fs:/mnt/data";
refreshInterval = 30000;
pointsLimit = 20;
diskUnits = "bytes";
};
};
}
{ {
Processes = { Processes = {
widget = { widget =
type = "glances"; glancesShared
url = "http://localhost:${port}"; // {
metric = "process"; metric = "process";
chart = false; };
version = 4;
};
}; };
} }
{ {
Network = { Network = {
widget = { widget =
type = "glances"; glancesShared
url = "http://localhost:${port}"; // {
metric = "network:enp6s0"; metric = "network:enp6s0";
chart = false; };
version = 4;
};
}; };
} }
]; ];