config/users/pbsds/home/profiles/gnome/default.nix
2023-06-23 23:29:56 +02:00

125 lines
4.1 KiB
Nix

# Handwritten!
{ config, lib, pkgs, ... }:
{
home.file.".local/opt/open-microsoft-url-files.py".source = ../../files/opt/open-microsoft-url-files.py;
home.file.".local/opt/python-interactive-imports.py".source = ../../files/opt/python-interactive-imports.py;
home.file.".local/opt/sympy-interactive-imports.py".source = ../../files/opt/sympy-interactive-imports.py;
home.file.".config/lxterminal/lxterminal.conf".source = ../../files/lxterminal.conf;
imports = [
./dconf-gnome-bindings.nix
./dconf-gnome-extensions.nix
./dconf-gnome-theme.nix
];
home.packages = with pkgs; [
lxterminal
gnome.gnome-tweaks
pkgs.vimix-gtk-themes # shell theme
gnomeExtensions.big-avatar
gnomeExtensions.bluetooth-quick-connect
gnomeExtensions.gtile
gnomeExtensions.just-perfection
gnomeExtensions.keep-awake
gnomeExtensions.middle-click-to-close-in-overview
gnomeExtensions.vertical-workspaces
#gnomeExtensions.vertical-overview # RIP
gnomeExtensions.appindicator
gnomeExtensions.removable-drive-menu
gnomeExtensions.always-show-titles-in-overview
gnomeExtensions.no-titlebar-when-maximized
/* TODO:
gnomeExtensions.night-light-slider
gnomeExtensions.tray-icons-reloaded
gnomeExtensions.removable-drive-menu
gnomeExtensions.battery-indicator-upower
gnomeExtensions.workspace-indicator-2
gnomeExtensions.forge
*/
];
#dump "org/gnome/settings-daemon/plugins/power"
dconf.settings = with lib.hm.gvariant; {
# extensions:
"org/gnome/shell" = {
disable-user-extensions = false;
# dconf dump /org/gnome/shell/ | grep ^enabled-extensions= | grep -E '\[.*\]' -o | sd ', ' '\n,'
enabled-extensions = [
"bluetooth-quick-connect@bjarosze.gmail.com"
"gTile@vibou"
"just-perfection-desktop@just-perfection"
"KeepAwake@jepfa.de"
"middleclickclose@paolo.tranquilli.gmail.com"
"user-theme@gnome-shell-extensions.gcampax.github.com"
"vertical-workspaces@G-dH.github.com"
#"vertical-overview@RensAlthuis.github.com"
"appindicatorsupport@rgcjonas.gmail.com"
"drive-menu@gnome-shell-extensions.gcampax.github.com"
"Always-Show-Titles-In-Overview@gmail.com"
"no-titlebar-when-maximized@alec.ninja"
];
};
# wallpaper
"org/gnome/desktop/background" = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "file://${../../files/wallpaper.jpg}";
picture-uri-dark = "file://${../../files/wallpaper.jpg}";
};
"org/gnome/desktop/screensaver" = {
idle-activation-enabled = false;
picture-uri = "file://${../../files/screensaver.jpg}";
};
# theme
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
enable-hot-corners = false;
clock-show-weekday = true;
};
#"org/gnome/desktop/wm/preferences" = {
# button-layout = ":minimize,close";
#};
# behaviour
"org/gnome/desktop/peripherals/touchpad" = {
disable-while-typing = false;
natural-scroll = false;
two-finger-scrolling-enabled = true;
};
"org/gnome/nautilus/preferences" = {
confirm-trash = true;
executable-text-activation = "display";
show-create-link = true;
sort-directories-first = true;
#recursive-search = "never";
show-image-thumbnails = "always";
show-directory-item-counts = "always";
};
"org/gtk/gtk4/settings/file-chooser" = {
sort-directories-first = true;
};
"org/gtk/settings/file-chooser" = {
sort-directories-first = true;
};
"org/gnome/settings-daemon/plugins/color" = {
night-light-enabled = true;
night-light-schedule-automatic = false;
night-light-schedule-from = 23.5;
night-light-schedule-to = 5.0;
night-light-temperature = mkUint32 4150;
};
#"org/gnome/desktop/session" = {
# idle-delay = mkUint32 (5 * 60);
#};
#"org/gnome/settings-daemon/plugins/power" {
# #sleep-inactive-ac-type = "suspend";
# sleep-inactive-ac-type = "nothing";
#};
};
}