feat(hypr): clean up

This commit is contained in:
2025-10-15 19:38:47 +02:00
parent 8efa649d47
commit 64df7abad5
4 changed files with 76 additions and 69 deletions

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 = [
@@ -125,71 +128,93 @@ in {
++ [ ++ [
{ {
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;
}; };
}; };
} }