2023-09-24 13:20:34 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
isEnabled = config.my.desktop.enableGnome;
|
|
|
|
in {
|
|
|
|
config = lib.mkIf isEnabled {
|
|
|
|
home-manager.sharedModules = [
|
|
|
|
{
|
2023-11-06 13:53:11 +01:00
|
|
|
home.packages = with pkgs;
|
|
|
|
[
|
|
|
|
amberol
|
2023-12-03 13:13:31 +01:00
|
|
|
gitg
|
|
|
|
gnome-builder
|
|
|
|
meld
|
2023-12-16 12:38:58 +01:00
|
|
|
simple-scan
|
2024-04-19 12:27:51 +02:00
|
|
|
pinta
|
2023-11-06 13:53:11 +01:00
|
|
|
]
|
|
|
|
++ (with gnome; [
|
|
|
|
dconf-editor
|
|
|
|
gpaste
|
|
|
|
])
|
|
|
|
++ (with gnomeExtensions; [
|
|
|
|
caffeine
|
|
|
|
appindicator
|
|
|
|
gsconnect
|
2024-02-05 22:44:35 +01:00
|
|
|
battery-health-charging
|
2023-11-06 13:53:11 +01:00
|
|
|
]);
|
|
|
|
|
2023-09-24 13:20:34 +02:00
|
|
|
dconf.settings = {
|
2023-11-06 13:53:11 +01:00
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
color-scheme = "prefer-dark";
|
2023-11-30 16:53:47 +01:00
|
|
|
clock-show-seconds = true;
|
2024-02-05 21:46:55 +01:00
|
|
|
show-battery-percentage = true;
|
2023-11-06 13:53:11 +01:00
|
|
|
};
|
2024-02-09 18:51:59 +01:00
|
|
|
"org/gnome/mutter" = {
|
|
|
|
edge-tiling = true;
|
2024-02-23 22:30:00 +01:00
|
|
|
dynamic-workspaces = true;
|
2024-02-09 18:51:59 +01:00
|
|
|
};
|
|
|
|
"org/gnome/desktop/peripherals/keyboard" = {
|
|
|
|
numlock-state = true;
|
|
|
|
};
|
|
|
|
"org/gnome/desktop/peripherals/touchpad" = {
|
|
|
|
tap-to-click = true;
|
|
|
|
two-finger-scrolling-enabled = true;
|
|
|
|
};
|
2023-11-06 13:53:11 +01:00
|
|
|
"org/gnome/tweaks" = {
|
|
|
|
show-extensions-notice = false;
|
|
|
|
};
|
|
|
|
"org/gnome/shell" = {
|
|
|
|
disable-user-extensions = false;
|
|
|
|
disabled-extensions = [];
|
|
|
|
enabled-extensions = [
|
|
|
|
"appindicatorsupport@rgcjonas.gmail.com"
|
|
|
|
"workspace-indicator@gnome-shell-extensions.gcampax.github.com"
|
|
|
|
"caffeine@patapon.info"
|
|
|
|
"GPaste@gnome-shell-extensions.gnome.org"
|
|
|
|
"gsconnect@andyholmes.github.io"
|
|
|
|
];
|
|
|
|
};
|
2024-02-09 18:51:59 +01:00
|
|
|
"ca/desrt/dconf-editor" = {
|
|
|
|
show-warning = false;
|
|
|
|
};
|
2024-02-23 22:30:00 +01:00
|
|
|
"org/gnome/desktop/wm/keybindings" = {
|
|
|
|
switch-windows = ["<Alt>Tab"];
|
|
|
|
switch-windows-backward = ["<Shift><Alt>Tab"];
|
|
|
|
switch-applications = ["<Super>Tab"];
|
|
|
|
switch-applications-backward = ["<Shift><Super>Tab"];
|
|
|
|
};
|
2023-09-24 13:20:34 +02:00
|
|
|
};
|
2023-11-30 17:25:44 +01:00
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
iconTheme.name = "Adwaita";
|
|
|
|
cursorTheme.name = "Adwaita";
|
|
|
|
theme = {
|
2023-12-25 12:30:11 +01:00
|
|
|
name = "adw-gtk3-dark";
|
2023-11-30 17:25:44 +01:00
|
|
|
package = pkgs.adw-gtk3;
|
|
|
|
};
|
|
|
|
};
|
2023-09-24 13:20:34 +02:00
|
|
|
}
|
2023-12-04 22:24:43 +01:00
|
|
|
(lib.mkIf config.my.tailscale.enable
|
|
|
|
{
|
2023-12-25 12:30:11 +01:00
|
|
|
home.packages = with pkgs;
|
|
|
|
[
|
|
|
|
trayscale
|
|
|
|
]
|
|
|
|
++ (with gnomeExtensions; [
|
|
|
|
tailscale-qs
|
|
|
|
]);
|
2023-12-04 22:24:43 +01:00
|
|
|
dconf.settings."org/gnome/shell".enabled-extensions = ["tailscale@joaophi.github.com"];
|
|
|
|
})
|
2023-09-24 13:20:34 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|