38 lines
947 B
Nix
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";
|
|
}
|