Add conditionals and assertions
This commit is contained in:
parent
3754cbb0c0
commit
6b04b535c1
7 changed files with 30 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue