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, inputs,
... ...
}: }:
let
palette = lib.strings.removePrefix "${pkgs.base16-schemes}/share/themes/" "${config.stylix.base16Scheme
}";
cleanPalette = lib.strings.removeSuffix ".yaml" "${palette}";
in
{ {
imports = [ imports = [
./stylix.nix ./stylix.nix
@ -32,19 +27,4 @@ in
source = ./programs/p10k.zsh; source = ./programs/p10k.zsh;
target = ".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
'';
};
} }

View file

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

View file

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