NixOS-95/nixos95/theme.nix
gytic 6a9de226ef feat(nixos-95): extract DE themining into nixosModule
the desktop environment can be included via `self.nixosModules.nixos95`

this will expose two options (for now):
nixos95.enable -> enable the desktop environment
nixos95.wallpaper -> path to the wallpaper to use

currently the setup is closy coupled to this configuration,
which will change in the future, so it can be used with any configuration
2025-07-25 18:04:18 +02:00

35 lines
736 B
Nix

{ inputs, config, lib, pkgs, ... }: let
cfg = config.nixos95;
theme_dir = "${inputs.self}/Ressources/Themes";
baseTheme = {
name = "Chicago95";
package = pkgs.callPackage "${theme_dir}/Chicago95/chicago95.nix" { };
};
iconTheme = {
name = "Win95_plus";
package = pkgs.callPackage "${theme_dir}/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;
};
}