feat(nixos): enabled systemd service, removed deprecation notice (#943)
Closes #892 Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -723,25 +723,23 @@ in
|
|||||||
text = finalConfig;
|
text = finalConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
# NOTE: Deprecated
|
systemd.user.services = mkIf cfg.systemd.enable {
|
||||||
# systemd.user.services = mkIf cfg.systemd.enable {
|
hyprpanel = {
|
||||||
# hyprpanel = {
|
Unit = {
|
||||||
# Unit = {
|
Description = "A Bar/Panel for Hyprland with extensive customizability.";
|
||||||
# Description = "A Bar/Panel for Hyprland with extensive customizability.";
|
Documentation = "https://hyprpanel.com";
|
||||||
# Documentation = "https://hyprpanel.com";
|
PartOf = [ "graphical-session.target" ];
|
||||||
# PartOf = [ "graphical-session.target" ];
|
After = [ "graphical-session-pre.target" ];
|
||||||
# After = [ "graphical-session-pre.target" ];
|
};
|
||||||
# };
|
Service = {
|
||||||
# Service = {
|
ExecStart = "${package}/bin/hyprpanel";
|
||||||
# ExecStart = "${package}/bin/hyprpanel";
|
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR1 $MAINPID";
|
||||||
# ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR1 $MAINPID";
|
Restart = "on-failure";
|
||||||
# Restart = "on-failure";
|
KillMode = "mixed";
|
||||||
# KillMode = "mixed";
|
};
|
||||||
# };
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
# Install = { WantedBy = [ "graphical-session.target" ]; };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
|
||||||
warnings = if cfg.systemd.enable then [ "The `systemd.enable` option is now obsolete." ] else [ ];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = mkIf cfg.hyprland.enable [
|
wayland.windowManager.hyprland.settings.exec-once = mkIf cfg.hyprland.enable [
|
||||||
"${package}/bin/hyprpanel"
|
"${package}/bin/hyprpanel"
|
||||||
|
|||||||
Reference in New Issue
Block a user