mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
refactor(de): move gnome config to separate file
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user