Link: https://github.com/nix-community/stylix/pull/1995

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Georgiy Shevoroshkin 2025-11-21 19:13:27 +01:00 committed by GitHub
parent 8ca5c7fbab
commit b9b0501839
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 61 additions and 0 deletions

32
modules/gdu/hm.nix Normal file
View file

@ -0,0 +1,32 @@
{
mkTarget,
...
}:
mkTarget {
name = "go DiskUsage()";
humanName = "go DiskUsage()";
configElements =
{ colors }:
{
xdg.configFile."gdu/gdu.yaml" = {
enable = true;
text = with colors.withHashtag; ''
style:
selected-row:
text-color: "${base05}"
background-color: "${base00}"
result-row:
number-color: "${base06}"
directory-color: "${base02}"
footer:
text-color: "${base05}"
background-color: "${base00}"
number-color: "${base06}"
header:
text-color: "${base05}"
background-color: "${base00}"
'';
};
};
}

6
modules/gdu/meta.nix Normal file
View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
name = "gdu";
homepage = "https://github.com/dundee/gdu";
maintainers = [ lib.maintainers.omega-800 ];
}

View file

@ -0,0 +1,11 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = "gdu";
useTerminal = true;
};
home-manager.sharedModules = lib.singleton {
home.packages = [ pkgs.gdu ];
};
}