nixfiles/home/environments/i3/conky/conky.nix
2025-04-19 12:00:09 -07:00

30 lines
655 B
Nix

{ config, pkgs, ... }: {
home.packages = with pkgs; [
jq
conky
];
xdg.configFile.conky = {
recursive = true;
source = config.lib.file.mkOutOfStoreSymlink ./.;
};
systemd.user.services.conky = {
Unit = {
Description = "Conky - Lightweight system monitor";
After = [ "graphical-session.target" ];
X-Restart-Triggers = [
./conky.conf
];
};
Service = {
Restart = "always";
RestartSec = "3";
ExecStartPre = "${pkgs.coreutils}/bin/sleep 5";
ExecStart = toString ([ "${pkgs.conky}/bin/conky"]);
};
Install.WantedBy = [ "graphical-session.target" ];
};
}