mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
sway/gammastep: added automatic location awareness with geoclue2
This commit is contained in:
parent
62943b1e61
commit
2b403be200
|
@ -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}";}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue