refactor(de): move gnome config to separate file

This commit is contained in:
2026-04-26 14:55:19 +02:00
parent 252e890242
commit 2a66123a12
3 changed files with 43 additions and 50 deletions
-49
View File
@@ -1,7 +1,6 @@
{
pkgs,
lib,
config,
currentSystemDe,
...
}:
@@ -23,63 +22,15 @@ in
enable = true;
wayland.enable = true;
};
gdm.enable = libDe.ifGnome true;
};
# Desktop environments
desktopManager = {
plasma6.enable = libDe.ifPlasma true;
gnome.enable = libDe.ifGnome true;
};
gnome.gnome-keyring.enable = true;
};
environment.plasma6.excludePackages = with pkgs.kdePackages; [
elisa
konsole
];
environment.gnome.excludePackages = with pkgs; [
epiphany
geary
gedit
gnome-characters
gnome-console
gnome-contacts
gnome-maps
gnome-music
gnome-software
gnome-tour
seahorse
simple-scan
xterm
yelp
];
programs.kdeconnect = libDe.ifNotNone {
enable = true;
package =
if (currentSystemDe == "gnome") then
pkgs.gnomeExtensions.gsconnect
else
pkgs.kdePackages.kdeconnect-kde;
};
programs.thunar.plugins =
with pkgs.xfce;
libDe.ifGnome [ ]
++ [
thunar-archive-plugin
thunar-media-tags-plugin
thunar-vcs-plugin
tumbler
];
# Hack to fix "Your GStreamer installation is missing a plug-in." inside of Nautilus
environment.sessionVariables.GST_PLUGIN_SYSTEM_PATH_1_0 =
lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0"
[
pkgs.gst_all_1.gst-plugins-good
pkgs.gst_all_1.gst-plugins-bad
pkgs.gst_all_1.gst-plugins-ugly
];
}
+2 -1
View File
@@ -8,7 +8,8 @@
imports = [
]
++ (if currentSystemDe == "niri" then [ ./niri.nix ] else [ ]);
++ (if currentSystemDe == "niri" then [ ./niri.nix ] else [ ])
++ (if currentSystemDe == "gnome" then [ ./gnome.nix ] else [ ]);
programs = {
gamescope = {
+41
View File
@@ -0,0 +1,41 @@
{ pkgs, lib, ... }:
{
services = {
desktopManager.gnome.enable = true;
displayManager.gdm.enable = true;
gnome.gnome-keyring.enable = true;
};
environment.gnome.excludePackages = with pkgs; [
epiphany
geary
gedit
gnome-characters
gnome-console
gnome-contacts
gnome-maps
gnome-music
gnome-software
gnome-tour
seahorse
simple-scan
xterm
yelp
];
programs.thunar.plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-media-tags-plugin
thunar-vcs-plugin
tumbler
];
# Hack to fix "Your GStreamer installation is missing a plug-in." inside of Nautilus
environment.sessionVariables.GST_PLUGIN_SYSTEM_PATH_1_0 =
lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0"
[
pkgs.gst_all_1.gst-plugins-good
pkgs.gst_all_1.gst-plugins-bad
pkgs.gst_all_1.gst-plugins-ugly
];
}