mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: conky is eating my life
This commit is contained in:
parent
b7c510de28
commit
34bc9ae04e
15 changed files with 1830 additions and 98 deletions
29
home/environments/i3/conky/conky.nix
Normal file
29
home/environments/i3/conky/conky.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ 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";
|
||||
ExecStart = toString ([ "${pkgs.conky}/bin/conky"]);
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue