make quickshell a systemd service and fix home manager env startup failure

This commit is contained in:
lucy 2026-08-17 02:15:14 +02:00
commit e56d16e645
3 changed files with 3 additions and 26 deletions

View file

@ -5,11 +5,6 @@
inputs,
...
}:
let
palette = lib.strings.removePrefix "${pkgs.base16-schemes}/share/themes/" "${config.stylix.base16Scheme
}";
cleanPalette = lib.strings.removeSuffix ".yaml" "${palette}";
in
{
imports = [
./stylix.nix
@ -29,22 +24,7 @@ in
home.homeDirectory = "/home/lucy";
home.stateVersion = "26.05";
home.file.p10k = {
source = ./programs/p10k.zsh;
target = ".p10k.zsh";
};
home.activation = {
wallpaper = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
${lib.getExe pkgs.lutgen} apply ${config.stylix.image} -p ${cleanPalette} -o ~/.walls/stylix-bars.png
'';
reloads =
lib.hm.dag.entryAfter
[
"writeBoundary"
]
''
${lib.getExe pkgs.quickshell} ipc call config reload true
${pkgs.systemd}/sbin/systemctl --user restart hyprpolkitagent.service
'';
source = ./programs/p10k.zsh;
target = ".p10k.zsh";
};
}

View file

@ -22,10 +22,6 @@ hl.monitor({
local terminal = "ghostty +new-window"
local fileManager = "thunar"
local menu = "fuzzel"
hl.on("hyprland.start", function()
hl.exec_cmd("qs")
end)
hl.config({
general = {
gaps_in = 5,

View file

@ -1,5 +1,6 @@
{ pkgs, ... }: {
programs.quickshell.enable = true;
programs.quickshell.systemd.enable = true;
programs.fuzzel.enable = true;
programs.home-manager.enable = true;
services.syncthing.enable = true;