mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:13:55 -05:00
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
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:
parent
9894536b34
commit
ba1d6fe0fd
|
@ -2,6 +2,7 @@ self: {lib, ...}: {
|
|||
boot = {
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
loader.systemd-boot.configurationLimit = lib.mkDefault 10;
|
||||
plymouth.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
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/interface" = {
|
||||
|
@ -24,10 +26,6 @@
|
|||
workspaces-only-on-primary = true;
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/color" = {
|
||||
# night-light-enabled = true;
|
||||
};
|
||||
|
||||
"org/gnome/shell".enabled-extensions = [
|
||||
"appindicatorsupport@rgcjonas.gmail.com"
|
||||
"blur-my-shell@aunetx"
|
||||
|
@ -52,14 +50,43 @@
|
|||
|
||||
"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;
|
||||
|
||||
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/tel" = "org.gnome.Shell.Extensions.GSConnect.desktop";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
autologin = "aly";
|
||||
};
|
||||
|
||||
hyprland.enable = true;
|
||||
gnome.enable = true;
|
||||
};
|
||||
|
||||
users.aly = {
|
||||
|
|
|
@ -1,38 +1,10 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
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 {
|
||||
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 = [
|
||||
# GNOME 46: triple-buffering-v4-46
|
||||
(final: prev: {
|
||||
|
@ -43,7 +15,7 @@ in {
|
|||
owner = "vanvugt";
|
||||
repo = "mutter";
|
||||
rev = "triple-buffering-v4-46";
|
||||
hash = "sha256-fkPjB/5DPBX06t7yj0Rb3UEuu5b9mu3aS+jhH18+lpI=";
|
||||
hash = "sha256-nz1Enw1NjxLEF3JUG0qknJgf4328W/VvdMjJmoOEMYs=";
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
0
update_fetchgit.sh
Normal file → Executable file
0
update_fetchgit.sh
Normal file → Executable file
Loading…
Reference in a new issue