sway/gammastep: added automatic location awareness with geoclue2

This commit is contained in:
Aly Raffauf 2024-05-21 22:37:04 -04:00
parent 62943b1e61
commit 2b403be200
2 changed files with 6 additions and 4 deletions

View file

@ -7,7 +7,8 @@
config = lib.mkIf config.alyraffauf.desktop.sway.redShift { config = lib.mkIf config.alyraffauf.desktop.sway.redShift {
home.packages = with pkgs; [gammastep]; home.packages = with pkgs; [gammastep];
wayland.windowManager.sway.config.startup = [ wayland.windowManager.sway.config.startup = [
{command = "${lib.getExe pkgs.gammastep} -l 31.1:-94.1";} # TODO: automatic locations {command = "${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent";}
{command = "${lib.getExe pkgs.gammastep}";}
]; ];
}; };
} }

View file

@ -12,10 +12,11 @@
config = lib.mkIf config.alyraffauf.desktop.sway.enable { config = lib.mkIf config.alyraffauf.desktop.sway.enable {
services = { services = {
dbus.packages = [pkgs.gcr];
udev.packages = [pkgs.swayosd];
gnome.gnome-keyring.enable = true;
blueman.enable = true; blueman.enable = true;
dbus.packages = [pkgs.gcr];
geoclue2.enable = true;
gnome.gnome-keyring.enable = true;
udev.packages = [pkgs.swayosd];
}; };
security.pam.services = { security.pam.services = {