mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:03:55 -05:00
Aly Raffauf
ba1d6fe0fd
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
93 lines
3 KiB
Nix
93 lines
3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.home.desktop.gnome.enable {
|
|
dconf = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
"org/gnome/desktop/datetime".automatic-timezone = true;
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
clock-format = "12h";
|
|
enable-hot-corners = true;
|
|
};
|
|
|
|
"org/gnome/desktop/peripherals/touchpad".tap-to-click = true;
|
|
"org/gnome/desktop/search-providers".enabled = "['org.gnome.Calendar.desktop', 'org.gnome.Weather.desktop', 'org.gnome.Contacts.desktop', 'org.gnome.Calculator.desktop', 'org.gnome.Characters.desktop', 'org.gnome.clocks.desktop']";
|
|
"org/gnome/desktop/wm/preferences".auto-raise = true;
|
|
|
|
"org/gnome/mutter" = {
|
|
dynamic-workspaces = true;
|
|
edge-tiling = true;
|
|
workspaces-only-on-primary = true;
|
|
};
|
|
|
|
"org/gnome/shell".enabled-extensions = [
|
|
"appindicatorsupport@rgcjonas.gmail.com"
|
|
"blur-my-shell@aunetx"
|
|
"gsconnect@andyholmes.github.io"
|
|
"nightthemeswitcher@romainvigier.fr"
|
|
"noannoyance-fork@vrba.dev"
|
|
"tailscale-status@maxgallup.github.com"
|
|
"tiling-assistant@leleat-on-github"
|
|
"drive-menu@gnome-shell-extensions.gcampax.github.com"
|
|
];
|
|
|
|
"org/gnome/shell/extensions/blur-my-shell/overview".style-components = 3;
|
|
|
|
"org/gnome/shell/extensions/blur-my-shell/panel" = {
|
|
blur = false;
|
|
customize = true;
|
|
override-background = false;
|
|
override-background-dynamically = false;
|
|
style-panel = 0;
|
|
unblur-in-overview = true;
|
|
};
|
|
|
|
"org/gnome/system/location".enabled = true;
|
|
};
|
|
};
|
|
|
|
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;
|
|
|
|
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/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop";
|
|
};
|
|
};
|
|
}
|