nix-git/modules/gnome-extensions.home.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-05 16:20:15 +02:00
{ config, pkgs, ... }:
{
2023-09-05 19:26:48 +02:00
# https://github.com/nix-community/home-manager/issues/284#issuecomment-1321199263
# https://the-empire.systems/nixos-gnome-settings-and-keyboard-shortcuts
# https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/
2023-09-05 16:23:31 +02:00
users.users.yoda = {
2023-09-05 19:26:48 +02:00
packages = with pkgs.gnomeExtensions; [
caffeine
openweather
2023-09-05 16:23:31 +02:00
];
};
2023-09-05 16:20:15 +02:00
programs.dconf.enable = true;
2023-09-05 17:58:40 +02:00
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
2023-09-05 19:26:48 +02:00
# TODO: Alternative
# home.packages = with pkgs.gnomeExtensions; [
# caffeine
# openweather
# ];
2023-09-05 16:20:15 +02:00
dconf.settings = {
# Enable GNOME extensions.
2023-09-05 19:26:48 +02:00
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
pkgs.gnomeExtensions.caffeine.extensionUuid
pkgs.gnomeExtensions.openweather.extensionUuid
];
# TODO: Alternative to the above
# "org/gnome/shell".enabled-extensions = map (extension: extension.extensionUuid) home.packages;
};
# Configure openweather extension.
"org/gnome/shell/extensions/openweather" = {
city = "49.60113,10.98816>Erlangen>0";
};
2023-09-05 16:20:15 +02:00
};
};
}