!qol(restructure): heavy restructure

This commit is contained in:
2025-12-10 21:37:23 +00:00
parent b5c2089694
commit f1337d3edd
114 changed files with 2 additions and 360 deletions

View File

@@ -0,0 +1,35 @@
{
inputs,
config,
lib,
pkgs,
system,
...
}:
let
pkg = inputs.quickshell.packages.${system}.quickshell;
cfg = config.modules.quickshell;
in
{
options.modules.quickshell = {
enable = lib.mkEnableOption "quickshell configuration module";
};
config.xdg.configFile."quickshell" = lib.mkIf cfg.enable {
recursive = true;
source = config.lib.file.mkOutOfStoreSymlink "./quickshell";
};
config.systemd.user.services.quickshell = lib.mkIf cfg.enable {
Unit = {
Description = "Quickshell daemon";
After = [ "hyprland-session.target" ];
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
ExecStart = "${pkg}/bin/quickshell";
Restart = "on-failure";
RestartSec = "5s";
};
};
}