feat: more dynamic theming

This commit is contained in:
2024-04-25 21:32:25 +02:00
parent 28b30353d8
commit 5c27567ca1
137 changed files with 180 additions and 8372 deletions

View File

@@ -6,23 +6,32 @@
...
}:
with lib;
let
cfg = config.desktops.hyprland;
in
{
options.desktops.hyprland = {
enable = mkEnableOption (mdDoc "Enable a DE based on Hyprland");
enable = lib.mkEnableOption "Enable a DE based on Hyprland";
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment = {
sessionVariables.NIXOS_OZONE_WL = "1";
systemPackages = with pkgs; [ glib ];
};
programs.hyprland.enable = true;
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
];
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common = {
default = [
"hyprland"
"gtk"
];
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
};
};
services = {
@@ -51,12 +60,5 @@ in
gnome.gnome-online-accounts.enable = true;
gnome.evolution-data-server.enable = true;
};
programs = {
hyprland.enable = true;
kdeconnect.enable = true;
};
environment.sessionVariables.NIXOS_OZONE_WL = "1";
};
}