Files
nextcloud_ecosystem/OLD CONFIGS/nix_old/modules/home-manager/hyprshell.nix
T
2026-02-22 17:28:02 +01:00

38 lines
947 B
Nix

{ pkgs, ... }:
let
moduleName = "hm-hyprshell";
in
{
# Make sure XDG base dirs are used (so xdg.configFile writes into ~/.config)
xdg.enable = true;
# Hyprshell config files
xdg.configFile."hyprshell/config.ron".source = ./conf/hyprshell/config.ron;
xdg.configFile."hyprshell/styles.css".source = ./conf/hyprshell/styles.css;
# Install hyprshell
home.packages = [ pkgs.hyprshell ];
# Run hyprshell as a user service when your graphical session starts
systemd.user.services.hyprshell = {
Unit = {
Description = "Hyprshell";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.hyprshell}/bin/hyprshell run";
Restart = "on-failure";
RestartSec = 1;
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
home.file.".nixlog/loaded.${moduleName}-module-loaded".text = "loaded\n";
}