mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
feat: add hyprsunset service
This commit is contained in:
parent
46f708b8e0
commit
dec206f1ec
2 changed files with 26 additions and 0 deletions
|
@ -58,6 +58,13 @@ in
|
||||||
Monitor to use for screen locker. Use `hyprctl monitors` to determine.
|
Monitor to use for screen locker. Use `hyprctl monitors` to determine.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
bluelight.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to enable `hyprsunset` as a daemon.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
@ -9,6 +9,25 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
systemd.user.services = lib.mkIf cfg.bluelight.enable {
|
||||||
|
hyprsunset = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Start the hyprsunset daemon";
|
||||||
|
PartOf = "hyprland-session.target";
|
||||||
|
After = "hyprland-session.target";
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.hyprsunset}/bin/hyprsunset";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 3;
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "hyprland-session.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.hyprpaper.enable = true;
|
services.hyprpaper.enable = true;
|
||||||
|
|
||||||
programs.wlogout.enable = true;
|
programs.wlogout.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue