Reworked DE

This commit is contained in:
Jan-Bulthuis 2025-05-18 15:01:25 +02:00
parent c37238700d
commit ad8d7c8c09
5 changed files with 80 additions and 68 deletions

View File

@ -0,0 +1,77 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.desktop.gnome;
in
{
options.modules.desktop.gnome = {
enable = mkEnableOption "gnome";
};
config = mkIf cfg.enable {
# TODO: Enable extensions with dconf
home.pointerCursor = {
name = "capitaine-cursors";
size = 24;
package = pkgs.capitaine-cursors;
gtk.enable = true;
x11.enable = true;
};
home.packages =
with pkgs;
[
gnome-session
gnome-shell
gnome-tweaks
gnome-calculator
snapshot
gnome-characters
gnome-connections
blackbox-terminal
baobab
gnome-disk-utility
evince
nautilus
gnome-font-viewer
loupe
gnome-maps
gnome-music
gnome-control-center
gnome-text-editor
showtime
file-roller
# For theming gtk3
adw-gtk3
]
++ (with pkgs.gnomeExtensions; [
gsconnect
disable-workspace-animation
wallpaper-slideshow
]);
# Enable and set the gtk themes
gtk = {
enable = true;
gtk3.extraConfig = {
gtk-theme-name = "adw-gtk3";
};
gtk4.extraConfig = {
gtk-theme-name = "Adwaita";
};
};
# Set the theme with dconf
dconf.settings."org/gnome/desktop/interface" = {
gtk-theme = "adw-gtk3";
};
};
}

View File

@ -1,32 +0,0 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.desktop.gnome;
in
{
options.modules.desktop.gnome = {
enable = mkEnableOption "gnome";
};
config = mkIf cfg.enable {
# TODO: Enable extensions with dconf
home.packages =
with pkgs;
[
gnome-control-center
gnome-tweaks
blackbox-terminal
]
++ (with pkgs.gnomeExtensions; [
gsconnect
disable-workspace-animation
]);
};
}

View File

@ -1,20 +0,0 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.desktop.tiling;
in
{
options.modules.desktop.tiling = {
enable = mkEnableOption "tiling desktop";
};
config = mkIf cfg.enable {
};
}

View File

@ -84,6 +84,9 @@ in
# Disable update notifications
"update.mode" = "none";
# Set themes
"window.autoDetectColorScheme" = true;
# TODO: Move to direnv module
# Ignore direnv folder
"files.exclude" = {

View File

@ -40,22 +40,6 @@ in
xdg-user-dirs-gtk
];
# Set up desktop entries for possible desktop environments
services.displayManager.sessionPackages = [
(pkgs.writeTextFile {
name = "river.desktop";
text = ''
[Desktop Entry]
Name=River
Comment=A dynamic tiling Wayland compositor
Exec=river
Type=Application
'';
destination = "/share/wayland-sessions/river.desktop";
passthru.providedSessions = [ "river" ];
})
];
# Enable Gnome Remote Desktop
services.gnome.gnome-remote-desktop.enable = true;
systemd.services."gnome-remote-desktop".wantedBy = [ "graphical.target" ];