!qol(restructure): heavy restructure
This commit is contained in:
35
modules/quickshell/home.nix
Normal file
35
modules/quickshell/home.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user