From 50b0025f12d6f0f790dc8995fae6d1f3eb90330a Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Mon, 6 Nov 2023 13:53:11 +0100 Subject: [PATCH] more gnome config managed by nix --- modules/desktop/gnome-home.nix | 37 +++++++++++++++++++++++++++++++--- modules/desktop/gnome.nix | 8 +++++++- modules/users/vinzenz-home.nix | 2 ++ 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/modules/desktop/gnome-home.nix b/modules/desktop/gnome-home.nix index ee3870b..c77d613 100644 --- a/modules/desktop/gnome-home.nix +++ b/modules/desktop/gnome-home.nix @@ -9,13 +9,44 @@ in { config = lib.mkIf isEnabled { home-manager.sharedModules = [ { - home.packages = with pkgs; [ - amberol - ]; + home.packages = with pkgs; + [ + amberol + ] + ++ (with gnome; [ + dconf-editor + gpaste + ]) + ++ (with gnomeExtensions; [ + caffeine + appindicator + gsconnect + ]); + dconf.settings = { "org/gnome/desktop/peripherals/keyboard" = { numlock-state = true; }; + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + "org/gnome/tweaks" = { + show-extensions-notice = false; + }; + "ca/desrt/dconf-editor" = { + show-warning = false; + }; + "org/gnome/shell" = { + disable-user-extensions = false; + disabled-extensions = []; + enabled-extensions = [ + "appindicatorsupport@rgcjonas.gmail.com" + "workspace-indicator@gnome-shell-extensions.gcampax.github.com" + "caffeine@patapon.info" + "GPaste@gnome-shell-extensions.gnome.org" + "gsconnect@andyholmes.github.io" + ]; + }; }; } ]; diff --git a/modules/desktop/gnome.nix b/modules/desktop/gnome.nix index d48c9ba..2931202 100644 --- a/modules/desktop/gnome.nix +++ b/modules/desktop/gnome.nix @@ -14,17 +14,23 @@ in { services = { xserver = { # Enable the GNOME Desktop Environment. - displayManager.gdm.enable = true; + displayManager = { + gdm.enable = true; + defaultSession = "gnome"; + }; desktopManager.gnome.enable = true; }; gnome = { tracker-miners.enable = false; tracker.enable = false; + sushi.enable = true; + #gnome-remote-desktop.enable = true; }; }; programs = { + dconf.enable = true; gpaste.enable = true; kdeconnect.package = pkgs.gnomeExtensions.gsconnect; }; diff --git a/modules/users/vinzenz-home.nix b/modules/users/vinzenz-home.nix index 583c309..6da8e6c 100644 --- a/modules/users/vinzenz-home.nix +++ b/modules/users/vinzenz-home.nix @@ -123,6 +123,8 @@ "workbench.enableExperiments" = false; "workbench.iconTheme" = "material-icon-theme"; "rust-analyzer.checkOnSave.command" = "clippy"; + "extensions.autoUpdate" = false; + "extensions.autoCheckUpdates" = false; }; };