mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
98 lines
2.6 KiB
Nix
98 lines
2.6 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
isEnabled = config.my.desktop.enableGnome;
|
|
in {
|
|
config = lib.mkIf isEnabled {
|
|
home-manager.sharedModules = [
|
|
{
|
|
home.packages = with pkgs;
|
|
[
|
|
amberol
|
|
gitg
|
|
gnome-builder
|
|
meld
|
|
simple-scan
|
|
pinta
|
|
]
|
|
++ (with gnome; [
|
|
dconf-editor
|
|
gpaste
|
|
])
|
|
++ (with gnomeExtensions; [
|
|
caffeine
|
|
appindicator
|
|
gsconnect
|
|
battery-health-charging
|
|
]);
|
|
|
|
dconf.settings = {
|
|
"org/gnome/desktop/interface" = {
|
|
color-scheme = "prefer-dark";
|
|
clock-show-seconds = true;
|
|
show-battery-percentage = true;
|
|
};
|
|
"org/gnome/mutter" = {
|
|
edge-tiling = true;
|
|
dynamic-workspaces = true;
|
|
};
|
|
"org/gnome/desktop/peripherals/keyboard" = {
|
|
numlock-state = true;
|
|
};
|
|
"org/gnome/desktop/peripherals/touchpad" = {
|
|
tap-to-click = true;
|
|
two-finger-scrolling-enabled = true;
|
|
};
|
|
"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"
|
|
];
|
|
};
|
|
"ca/desrt/dconf-editor" = {
|
|
show-warning = false;
|
|
};
|
|
"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"];
|
|
};
|
|
};
|
|
|
|
gtk = {
|
|
enable = true;
|
|
iconTheme.name = "Adwaita";
|
|
cursorTheme.name = "Adwaita";
|
|
theme = {
|
|
name = "adw-gtk3-dark";
|
|
package = pkgs.adw-gtk3;
|
|
};
|
|
};
|
|
}
|
|
(lib.mkIf config.my.tailscale.enable
|
|
{
|
|
home.packages = with pkgs;
|
|
[
|
|
trayscale
|
|
]
|
|
++ (with gnomeExtensions; [
|
|
tailscale-qs
|
|
]);
|
|
dconf.settings."org/gnome/shell".enabled-extensions = ["tailscale@joaophi.github.com"];
|
|
})
|
|
];
|
|
};
|
|
}
|