nixos-configuration/modules/desktop/gnome-home.nix

83 lines
2.1 KiB
Nix
Raw Normal View History

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
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 = {
"org/gnome/desktop/peripherals/keyboard" = {
numlock-state = true;
};
2023-11-06 13:53:11 +01:00
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
clock-show-seconds = true;
2024-02-05 21:46:55 +01:00
show-battery-percentage = true;
2023-11-06 13:53:11 +01:00
};
"org/gnome/tweaks" = {
show-extensions-notice = false;
};
"ca/desrt/dconf-editor" = {
show-warning = 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"
];
};
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
];
};
}