nixfiles/home/environments/i3/conky/conky.nix
2025-06-17 16:41:48 -07:00

30 lines
687 B
Nix

{ config, pkgs, ... }: {
home.packages = with pkgs; [
jq
];
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.override { nvidiaSupport = true; })}/bin/conky"]);
};
Install.WantedBy = [ "graphical-session.target" ];
};
}