mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-23 08:03:56 -05:00
home: run gammastep as service for redShift"
This commit is contained in:
parent
f8f1a48ce9
commit
15ad9f4cec
|
@ -130,8 +130,6 @@ in {
|
|||
(lib.getExe pkgs.waybar)
|
||||
(lib.getExe pkgs.wayland-pipewire-idle-inhibit)
|
||||
]
|
||||
++ lib.lists.optional (cfg.desktop.redShift)
|
||||
"${lib.getExe pkgs.gammastep} -l 33.74:-84.38"
|
||||
++ lib.lists.optional (cfg.desktop.randomWallpaper)
|
||||
helpers.wallpaperD
|
||||
++ lib.lists.optional (!cfg.desktop.randomWallpaper)
|
||||
|
|
|
@ -162,8 +162,6 @@ in {
|
|||
{command = lib.getExe pkgs.mako;}
|
||||
{command = lib.getExe pkgs.wayland-pipewire-idle-inhibit;}
|
||||
]
|
||||
++ lib.optional cfg.desktop.redShift
|
||||
{command = "${lib.getExe pkgs.gammastep} -l 33.74:-84.38";}
|
||||
++ lib.optional cfg.desktop.randomWallpaper {command = "${helpers.wallpaperD}";}
|
||||
++ lib.optional (!cfg.desktop.randomWallpaper) {command = "${lib.getExe pkgs.swaybg} -i ${cfg.theme.wallpaper}";};
|
||||
|
||||
|
|
|
@ -205,6 +205,8 @@ in {
|
|||
type = lib.types.str;
|
||||
};
|
||||
};
|
||||
|
||||
gammastep.enable = lib.mkEnableOption "Gammastep redshift daemon.";
|
||||
|
||||
easyeffects = {
|
||||
enable = lib.mkEnableOption "EasyEffects user service.";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./easyeffects
|
||||
./gammastep
|
||||
./mpd
|
||||
./swayidle
|
||||
];
|
||||
|
|
16
homeManagerModules/services/gammastep/default.nix
Normal file
16
homeManagerModules/services/gammastep/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.ar.home;
|
||||
in {
|
||||
config = lib.mkIf (cfg.services.gammastep.enable || cfg.desktop.redShift) {
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
latitude = lib.mkDefault "33.74";
|
||||
longitude = lib.mkDefault "-84.38";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue