feat: made quickshell systemd service
This commit is contained in:
@@ -187,7 +187,7 @@ in
|
||||
networkmanagerapplet
|
||||
#inputs.way-inhibitor.packages.${pkgs.system}.default
|
||||
inputs.zen-browser.packages.${pkgs.system}.twilight
|
||||
inputs.quickshell.packages.${pkgs.system}.default
|
||||
#inputs.quickshell.packages.${pkgs.system}.default
|
||||
inputs.qs-qml.packages.${pkgs.system}.tree-sitter-qmljs
|
||||
inputs.qs-qml.packages.${pkgs.system}.qml-ts-mode
|
||||
lxqt.pcmanfm-qt
|
||||
|
||||
@@ -22,11 +22,13 @@ in
|
||||
../dots/hyprlock.nix
|
||||
./stylix.nix
|
||||
./homePkgs.nix
|
||||
./services.nix
|
||||
../dots/xdg.nix
|
||||
../dots/river.nix
|
||||
../dots/niri.nix
|
||||
../dots/hyprland.nix
|
||||
../dots/hyprpaper.nix
|
||||
|
||||
];
|
||||
|
||||
# you can go look here for a list of color schemes https://github.com/tinted-theming/schemes
|
||||
|
||||
31
home/services.nix
Normal file
31
home/services.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
quickshellPackage = inputs.quickshell.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
systemd.user.services.quickshell = {
|
||||
Unit = {
|
||||
Description = "QuickShell Application";
|
||||
After = [ "graphical-session.target" ];
|
||||
Requires = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${quickshellPackage}/bin/quickshell";
|
||||
ExecStartPre = "/bin/sh -c 'test -n \"$WAYLAND_DISPLAY\"'";
|
||||
Restart = "always";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user