Add conditionals and assertions

This commit is contained in:
Vili Sinervä 2024-06-06 22:16:29 +03:00
parent 3754cbb0c0
commit 6b04b535c1
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
7 changed files with 30 additions and 3 deletions

View file

@ -1,6 +1,12 @@
# Redshift bluelight reducer
{ config, pkgs, ... }:
{
assertions = [
{
assertion = config.services.xserver.enable;
message = "Redshift does not work without a desktop!";
}
];
services = {
redshift = {
executable = "/bin/redshift-gtk";