mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
30 lines
655 B
Nix
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" ];
|
|
};
|
|
}
|