redshift: wait for decryption

main
Zynh Ludwig 2024-07-24 01:16:12 -07:00
parent c96fbbb91e
commit 9d67cf3d60
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,8 @@
let let
cfg = config.snowhawk.redshift; cfg = config.snowhawk.redshift;
cfgDir = config.xdg.configHome + "/redshift"; cfgDir = config.xdg.configHome + "/redshift";
sops = config.snowhawk.sops.enable;
in in
{ {
options.snowhawk.redshift = { options.snowhawk.redshift = {
@ -14,6 +16,7 @@ in
Unit = { Unit = {
Description = "redshift service"; Description = "redshift service";
PartOf = [ "graphical-session.target" ]; PartOf = [ "graphical-session.target" ];
After = lib.mkIf sops [ "sops-nix.service" ];
}; };
Service = { Service = {
Type = "exec"; Type = "exec";