summaryrefslogtreecommitdiff
path: root/modules/gnome
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-09-12 21:44:46 -0300
committerLeonardo Santiago <[email protected]>2024-09-12 23:20:51 -0300
commit62100c9265a4de389d1ea8060cbddddacde161a7 (patch)
tree811ca1c5803ccdb2670f0c239214bc0dc30f57c7 /modules/gnome
parentf9ddec7952709d7b5d5d79deadca07c573510d49 (diff)
split users/leonardo.nix into modules with options
in order to be able to deploy just a few of those to iori.nix
Diffstat (limited to 'modules/gnome')
-rw-r--r--modules/gnome/default.nix47
-rw-r--r--modules/gnome/gnome-config.nix57
2 files changed, 104 insertions, 0 deletions
diff --git a/modules/gnome/default.nix b/modules/gnome/default.nix
new file mode 100644
index 0000000..f0e7939
--- /dev/null
+++ b/modules/gnome/default.nix
@@ -0,0 +1,47 @@
+{ config, lib, pkgs, ...}: with lib; {
+ options.santi-modules.gnome.enable = mkEnableOption "Enable gnome";
+ config = mkIf config.santi-modules.gnome.enable {
+ programs.dconf.enable = true;
+ environment.systemPackages = with pkgs; [
+ gnome-tweaks
+ tela-icon-theme
+ ] ++ (with gnomeExtensions; [
+ appindicator
+ vitals
+ user-themes
+ graphite-gtk-theme
+ x11-gestures
+ gsconnect
+ ]);
+
+ environment.gnome.excludePackages = with pkgs; [
+ gnome-photos
+ gnome-tour
+ gedit
+ cheese
+ gnome-terminal
+ epiphany # web browser
+ geary # email reader
+ evince # document viewer
+ totem # video player
+ gnome-music
+ gnome-characters
+ tali # poker game
+ iagno # go game
+ hitori # sudoku game
+ atomix # puzzle game
+ ];
+ services.xserver = {
+ displayManager.gdm = {
+ enable = true;
+ wayland = false;
+ };
+ desktopManager.gnome.enable = true;
+ };
+ services.udev.packages = [ pkgs.gnome-settings-daemon ];
+ services.gnome = {
+ gnome-browser-connector.enable = true;
+ gnome-keyring.enable = true;
+ };
+ };
+}
diff --git a/modules/gnome/gnome-config.nix b/modules/gnome/gnome-config.nix
new file mode 100644
index 0000000..099a692
--- /dev/null
+++ b/modules/gnome/gnome-config.nix
@@ -0,0 +1,57 @@
+santi-modules:
+{ lib, ... }: lib.optionalAttrs santi-modules.gnome.enable {
+ dconf.settings = {
+ "org/gnome/desktop/background" = {
+ picture-uri = "${../../wallpaper.png}";
+ picture-uri-dark = "${../../wallpaper.png}";
+ picture-options = "zoom";
+ };
+ "org/gnome/desktop/interface" = {
+ color-scheme="prefer-dark";
+ enable-hot-corners=false;
+ font-antialiasing="grayscale";
+ font-hinting="slight";
+ gtk-theme="Graphite-Dark";
+ icon-theme="Tela-brown-light";
+ show-battery-percentage=true;
+ };
+ "org/gnome/desktop/peripherals/touchpad" = {
+ edge-scrolling-enabled=false;
+ natural-scroll=true;
+ tap-to-click=true;
+ two-finger-scrolling-enabled=true;
+ };
+ "org/gnome/mutter" = {
+ dynamic-workspaces= true;
+ edge-tiling= true;
+ workspaces-only-on-primary= true;
+ };
+ "org/gnome/settings-daemon/plugins/power" = {
+ power-button-action="hibernate";
+ sleep-inactive-ac-type="nothing";
+ };
+ # ========= GNOME SHELL ============
+ "org/gnome/shell" = {
+ enabled-extensions = [
+ ];
+ disabled-extensions= [
+ ];
+ };
+ "org/gnome/shell/extensions/user-theme".name = "Graphite-Dark";
+ "org/honem/shell/extensions/vitals" = {
+ hide-zeros = true;
+ position-in-panel = "0";
+ show-battery = false;
+ show-temperature = true;
+ };
+ "org/gnome/shell/app-switcher".current-workspace-only = true;
+ };
+}