non important commit
This commit is contained in:
parent
6fac997361
commit
f78cf7fdc0
1 changed files with 6 additions and 1 deletions
|
|
@ -2,16 +2,21 @@
|
||||||
qs_config = pkgs.callPackage ./quick_config/quick.nix {};
|
qs_config = pkgs.callPackage ./quick_config/quick.nix {};
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [pkgs.quickshell];
|
environment.systemPackages = [pkgs.quickshell];
|
||||||
|
|
||||||
systemd.user.services.quickshell = {
|
systemd.user.services.quickshell = {
|
||||||
description = "quickshell desktop shell";
|
description = "quickshell desktop shell";
|
||||||
wantedBy = ["graphical-session.target"];
|
wantedBy = ["graphical-session.target"];
|
||||||
partOf = ["graphical-session.target"];
|
partOf = ["graphical-session.target"];
|
||||||
after = ["graphical-session.target"];
|
after = ["graphical-session.target"];
|
||||||
restartTriggers = [qs_config];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.quickshell}/bin/qs -c ${qs_config}";
|
ExecStart = "${pkgs.quickshell}/bin/qs -c ${qs_config}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.userActivationScripts.restartQuickshell = ''
|
||||||
|
${pkgs.systemd}/bin/systemctl --user restart quickshell.service || true
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue