NixOS-95/nixos95/theme.nix
gytic 941b1bffe5 fix(paths): use relative paths instead of inputs.self
when using nixos95 from another flake, the other flake will take over the path of inputs.self and therefore
break the paths.

We can fix this by navigating to the root with relative notation and contiuning from there
2025-07-28 22:18:59 +02:00

35 lines
727 B
Nix

{ inputs, config, lib, pkgs, ... }: let
cfg = config.nixos95;
root = ../.;
baseTheme = {
name = "Chicago95";
package = pkgs.callPackage "${root}/Ressources/Themes/Chicago95/chicago95.nix" { };
};
iconTheme = {
name = "Win95_plus";
package = pkgs.callPackage "${root}/Ressources/Themes/Win95_plus/win95_plus.nix" { };
};
in lib.mkIf cfg.enable {
home-manager.users.${cfg.user} = {
gtk = {
enable = true;
theme = baseTheme;
iconTheme = iconTheme;
cursorTheme = baseTheme;
font = {
name = "Sans";
size = 12;
};
};
home.pointerCursor = {
size = 24;
gtk.enable = true;
x11.enable = true;
} // baseTheme;
};
}