mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
GNOME extensions
This commit is contained in:
parent
c93e9bc4d9
commit
deff2e2cf8
@ -1,18 +1,42 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# 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/
|
||||
|
||||
users.users.yoda = {
|
||||
packages = with pkgs; [
|
||||
gnomeExtensions.caffeine
|
||||
packages = with pkgs.gnomeExtensions; [
|
||||
caffeine
|
||||
openweather
|
||||
];
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||
# TODO: Alternative
|
||||
# home.packages = with pkgs.gnomeExtensions; [
|
||||
# caffeine
|
||||
# openweather
|
||||
# ];
|
||||
|
||||
dconf.settings = {
|
||||
# Enable GNOME extensions.
|
||||
"org/gnome/shell".enabled-extensions = [ pkgs.gnomeExtensions.caffeine.extensionUuid ];
|
||||
"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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user