From c472f5086c7c7927b7b60bcacd4a8f5827aeb358 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 11 Mar 2024 20:07:46 +0100 Subject: [PATCH] configuration/common: Set defaults for gnome shell --- configuration/desktop/gnome.nix | 23 +++++++++++++++++++++++ configuration/desktop/inputs.nix | 10 ++++++++++ configuration/desktop/power.nix | 14 ++++++++++++++ 3 files changed, 47 insertions(+) diff --git a/configuration/desktop/gnome.nix b/configuration/desktop/gnome.nix index 1a70246..f05d50a 100644 --- a/configuration/desktop/gnome.nix +++ b/configuration/desktop/gnome.nix @@ -32,4 +32,27 @@ ]; services.gnome.evolution-data-server.enable = true; + + programs.dconf.profiles = { + user.databases = [ + { + settings = { + "org/gnome/desktop/calendar" = { + show-weekdate = true; + }; + "org/gnome/desktop/interface" = { + enable-hot-corners = false; + show-battery-percentage = true; + }; + "org/gnome/desktop/notifications" = { + show-in-lock-screen = false; + }; + "org/gnome/gnome-system-monitor" = { + network-in-bits = true; + network-total-in-bits = true; + }; + }; + } + ]; + }; } diff --git a/configuration/desktop/inputs.nix b/configuration/desktop/inputs.nix index e855eda..e6419a1 100644 --- a/configuration/desktop/inputs.nix +++ b/configuration/desktop/inputs.nix @@ -12,6 +12,16 @@ tap-to-click = true; two-finger-scrolling-enabled = true; }; + "org/gnome/settings-daemon/plugins/media-keys" = { + custom-keybindings = [ + "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal/" + ]; + }; + "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal" = { + name = "Terminal"; + binding = "t"; + command = "gnome-terminal"; + }; }; } ]; diff --git a/configuration/desktop/power.nix b/configuration/desktop/power.nix index 87c060a..f5429d1 100644 --- a/configuration/desktop/power.nix +++ b/configuration/desktop/power.nix @@ -8,4 +8,18 @@ systemd.sleep.extraConfig = '' HibernateDelaySec=30m ''; + + programs.dconf.profiles = { + user.databases = [ + { + settings = { + "org/gnome/settings-daemon/plugins/power" = { + power-button-action = "nothing"; + power-saver-profile-on-low-battery = false; + sleep-inactive-ac-type = "nothing"; + }; + }; + } + ]; + }; }