config/users/pbsds/home/profiles/gnome/default.nix

128 lines
3.5 KiB
Nix
Raw Normal View History

2023-03-11 00:30:24 +01:00
# Handwritten!
2023-06-19 03:35:47 +02:00
{ config, lib, pkgs, ... }:
2024-02-29 18:40:37 +01:00
let
gnomeExtensions = builtins.attrValues { inherit (pkgs.gnomeExtensions)
#gnomeExtensions.big-avatar
bluetooth-quick-connect
gtile
just-perfection
keep-awake
middle-click-to-close-in-overview
vertical-workspaces
#vertical-overview # RIP
appindicator
removable-drive-menu
always-show-titles-in-overview
vitals
/* TODO:
night-light-slider
tray-icons-reloaded
removable-drive-menu
battery-indicator-upower
workspace-indicator-2
forge
*/
;};
in
2023-03-11 00:30:24 +01:00
{
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;
2024-03-02 15:33:04 +01:00
# qt theme
qt.enable = true;
2024-06-07 18:26:44 +02:00
qt.platformTheme = lib.mkMerge [
(lib.mkIf (lib.versionAtLeast config.home.version.release "24.05") { name = "advaita"; })
(lib.mkIf (lib.versionOlder config.home.version.release "24.05") "gnome")
];
2024-03-02 15:33:04 +01:00
qt.style.name = "Colloid-dark";
qt.style.package = pkgs.colloid-kde;
2023-03-11 00:30:24 +01:00
imports = [
./dconf-gnome-bindings.nix
./dconf-gnome-extensions.nix
./dconf-gnome-theme.nix
];
2024-02-29 18:40:37 +01:00
home.packages = [
pkgs.gnome.gnome-tweaks
2023-03-11 00:30:24 +01:00
pkgs.vimix-gtk-themes # shell theme
2024-02-29 18:40:37 +01:00
] ++ gnomeExtensions;
2023-03-11 00:30:24 +01:00
2023-06-19 02:45:50 +02:00
dconf.settings = with lib.hm.gvariant; {
# extensions:
2023-03-11 00:30:24 +01:00
"org/gnome/shell" = {
disable-user-extensions = false;
2024-02-29 18:40:37 +01:00
enabled-extensions = lib.forEach gnomeExtensions (pkg: pkg.extensionUuid);
2023-03-11 00:30:24 +01:00
};
# 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}";
};
2023-06-19 02:45:50 +02:00
# theme
2023-03-11 00:30:24 +01:00
"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";
#};
2023-06-19 02:45:50 +02:00
# behaviour
2023-03-11 00:30:24 +01:00
"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";
2023-06-18 23:36:32 +02:00
show-image-thumbnails = "always";
show-directory-item-counts = "always";
};
2024-05-10 21:00:45 +02:00
"org/gnome/nautilus/list-view" = {
use-tree-view = true;
};
2023-06-18 23:36:32 +02:00
"org/gtk/gtk4/settings/file-chooser" = {
sort-directories-first = true;
};
"org/gtk/settings/file-chooser" = {
sort-directories-first = true;
2023-03-11 00:30:24 +01:00
};
2023-06-19 02:45:50 +02:00
"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;
};
2024-02-25 15:45:35 +01:00
#dump "org/gnome/settings-daemon/plugins/power"
2023-06-22 19:19:55 +02:00
#"org/gnome/desktop/session" = {
# idle-delay = mkUint32 (5 * 60);
#};
2024-06-06 14:10:35 +02:00
"org/gnome/settings-daemon/plugins/power" = {
sleep-inactive-ac-type = "nothing";
sleep-inactive-battery-type = "suspend";
};
2023-06-22 19:19:55 +02:00
2023-03-11 00:30:24 +01:00
};
}