home: move gnome config to hm (#59)
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

* base: limit systemd-boot configurations to 10

* home/gnome: cleanup

* home/gnome: move extesniosn to hm module

* home/gnome: fix nesting

* home/gnome: add cs adjuster

* nixos/gnome: simplify fprintd fixes

* Revert "nixos/gnome: simplify fprintd fixes"

This reverts commit 540ba39bf9.

* home/gnome: enable extensions with dconf

* nixos/gnome: update triple buffer overlay hash
This commit is contained in:
Aly Raffauf 2024-07-23 13:04:10 -04:00 committed by GitHub
parent 9894536b34
commit ba1d6fe0fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 87 additions and 87 deletions

View file

@ -2,6 +2,7 @@ self: {lib, ...}: {
boot = { boot = {
consoleLogLevel = 0; consoleLogLevel = 0;
initrd.verbose = false; initrd.verbose = false;
loader.systemd-boot.configurationLimit = lib.mkDefault 10;
plymouth.enable = true; plymouth.enable = true;
}; };

View file

@ -1,12 +1,14 @@
{ {
lib,
config, config,
lib,
pkgs,
... ...
}: { }: {
config = lib.mkIf config.ar.home.desktop.gnome.enable { config = lib.mkIf config.ar.home.desktop.gnome.enable {
dconf.enable = true; dconf = {
enable = true;
dconf.settings = { settings = {
"org/gnome/desktop/datetime".automatic-timezone = true; "org/gnome/desktop/datetime".automatic-timezone = true;
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
@ -24,10 +26,6 @@
workspaces-only-on-primary = true; workspaces-only-on-primary = true;
}; };
"org/gnome/settings-daemon/plugins/color" = {
# night-light-enabled = true;
};
"org/gnome/shell".enabled-extensions = [ "org/gnome/shell".enabled-extensions = [
"appindicatorsupport@rgcjonas.gmail.com" "appindicatorsupport@rgcjonas.gmail.com"
"blur-my-shell@aunetx" "blur-my-shell@aunetx"
@ -52,14 +50,43 @@
"org/gnome/system/location".enabled = true; "org/gnome/system/location".enabled = true;
}; };
};
xdg.mimeApps = { home.packages = [
(pkgs.writeShellScriptBin "gcs-toggle" ''
# Get current color scheme
color_scheme=$(${lib.getExe' pkgs.glib "gsettings"} get org.gnome.desktop.interface color-scheme)
# Toggle between light and dark color schemes
if [ "$color_scheme" == "'default'" ] || [ "$color_scheme" == "'prefer-light'" ]; then
color_scheme="'prefer-dark'"
else
color_scheme="'prefer-light'"
fi
# Apply the updated color scheme
${lib.getExe' pkgs.glib "gsettings"} set org.gnome.desktop.interface color-scheme $color_scheme
'')
];
programs.gnome-shell = {
enable = true; enable = true;
defaultApplications = { extensions = [
{package = pkgs.gnomeExtensions.appindicator;}
{package = pkgs.gnomeExtensions.blur-my-shell;}
{package = pkgs.gnomeExtensions.gsconnect;}
{package = pkgs.gnomeExtensions.light-shell;}
{package = pkgs.gnomeExtensions.night-theme-switcher;}
{package = pkgs.gnomeExtensions.noannoyance-fork;}
{package = pkgs.gnomeExtensions.tailscale-status;}
{package = pkgs.gnomeExtensions.tiling-assistant;}
];
};
xdg.mimeApps.defaultApplications = {
"x-scheme-handler/sms" = "org.gnome.Shell.Extensions.GSConnect.desktop"; "x-scheme-handler/sms" = "org.gnome.Shell.Extensions.GSConnect.desktop";
"x-scheme-handler/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop"; "x-scheme-handler/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop";
}; };
}; };
};
} }

View file

@ -57,7 +57,7 @@
autologin = "aly"; autologin = "aly";
}; };
hyprland.enable = true; gnome.enable = true;
}; };
users.aly = { users.aly = {

View file

@ -1,38 +1,10 @@
{ {
pkgs,
lib,
config, config,
lib,
pkgs,
... ...
}: let }: {
gnomeCsAdjuster = pkgs.writeShellScriptBin "gnome-cs-adjuster" ''
# Get current color scheme
color_scheme=$(${lib.getExe' pkgs.glib "gsettings"} get org.gnome.desktop.interface color-scheme)
# Toggle between light and dark color schemes
if [ "$color_scheme" == "'default'" ] || [ "$color_scheme" == "'prefer-light'" ]; then
color_scheme="'prefer-dark'"
else
color_scheme="'prefer-light'"
fi
# Apply the updated color scheme
${lib.getExe' pkgs.glib "gsettings"} set org.gnome.desktop.interface color-scheme $color_scheme
'';
in {
config = lib.mkIf config.ar.desktop.gnome.enable { config = lib.mkIf config.ar.desktop.gnome.enable {
environment.systemPackages =
[
pkgs.gnomeExtensions.appindicator
pkgs.gnomeExtensions.blur-my-shell
pkgs.gnomeExtensions.gsconnect
pkgs.gnomeExtensions.light-shell
pkgs.gnomeExtensions.night-theme-switcher
pkgs.gnomeExtensions.noannoyance-fork
pkgs.gnomeExtensions.tailscale-status
pkgs.gnomeExtensions.tiling-assistant
]
++ [gnomeCsAdjuster];
nixpkgs.overlays = [ nixpkgs.overlays = [
# GNOME 46: triple-buffering-v4-46 # GNOME 46: triple-buffering-v4-46
(final: prev: { (final: prev: {
@ -43,7 +15,7 @@ in {
owner = "vanvugt"; owner = "vanvugt";
repo = "mutter"; repo = "mutter";
rev = "triple-buffering-v4-46"; rev = "triple-buffering-v4-46";
hash = "sha256-fkPjB/5DPBX06t7yj0Rb3UEuu5b9mu3aS+jhH18+lpI="; hash = "sha256-nz1Enw1NjxLEF3JUG0qknJgf4328W/VvdMjJmoOEMYs=";
}; };
}); });
}); });

0
update_fetchgit.sh Normal file → Executable file
View file