This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/applications/gammastep.nix
James Patrick 3285dbdd7b Removed sway.
I've run into a few to many UI issue. I've been using sway for a while,
but & it has gotten a lot better, but its still kind of rough around the
edges in some spots. I may switch back at some time in the future.
2022-07-12 22:41:23 -04:00

40 lines
864 B
Nix

{ options, config, lib, pkgs, ... }:
let
cfg = config.this.application.gammastep;
i3 = config.this.application.i3;
in with lib; {
options = {
this.application.gammastep.enable = mkOption {
default = i3.enable;
type = with types; bool;
};
};
config = mkIf cfg.enable {
home-manager.users.james = {
services.gammastep = {
enable = true;
provider = "geoclue2";
tray = true;
};
};
services.geoclue2.enable = true;
systemd.user.services.gammastep = {
enable = true;
description = "Nightly color shifting";
wantedBy = [ "i3-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = ''
${pkgs.gammastep}/bin/gammastep
'';
RestartSec = 5;
Restart = "always";
};
};
};
}