redshift: wait for decryption

This commit is contained in:
Zynh Ludwig 2024-07-24 01:16:12 -07:00
parent c96fbbb91e
commit 9d67cf3d60

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";