mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 20:09:17 -05:00
home/gnome: remove module
This commit is contained in:
parent
f3bb8a906d
commit
897035b967
|
@ -1,92 +0,0 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue