it works!
This commit is contained in:
parent
386d889455
commit
50d6a79e31
15 changed files with 204 additions and 256 deletions
48
home/cli-office/default.nix
Normal file
48
home/cli-office/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./khard-dump.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
castget
|
||||
drawing
|
||||
feh
|
||||
ghostscript
|
||||
ghostscript
|
||||
hunspell
|
||||
hunspellDicts.de_DE
|
||||
hunspellDicts.en_US
|
||||
hunspellDicts.th_TH
|
||||
hyphen
|
||||
hyphenDicts.de_DE
|
||||
hyphenDicts.en_US
|
||||
imagemagick
|
||||
imagemagick
|
||||
khal
|
||||
khard
|
||||
msmtp
|
||||
notmuch
|
||||
openssl
|
||||
pandoc
|
||||
pdftk
|
||||
ripmime
|
||||
taskopen
|
||||
urlscan
|
||||
w3m
|
||||
zathura
|
||||
];
|
||||
|
||||
programs.neovim.plugins = with pkgs.vimPlugins; [ lazy-nvim ];
|
||||
|
||||
xdg.configFile."nvim/lua/woof-vim.lua".text = ''
|
||||
return {
|
||||
"woof-vim",
|
||||
name = "woof-vim",
|
||||
dev = {
|
||||
path = "~/devel"
|
||||
}
|
||||
}
|
||||
'';
|
||||
}
|
||||
29
home/cli-office/khard-dump.nix
Normal file
29
home/cli-office/khard-dump.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.user.timers = {
|
||||
khard-dump = {
|
||||
Unit = {
|
||||
Description = "Timer to run khard-dump service";
|
||||
};
|
||||
Timer = {
|
||||
OnCalendar = "*:00/10";
|
||||
Unit = "khard-dump.service";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
khard-dump = {
|
||||
Unit = {
|
||||
Description = "Dumps contact info to custom cache file";
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.writeScript "khard-dump" ''
|
||||
#! ${pkgs.stdenv.shell}
|
||||
${pkgs.khard.outPath}/bin/khard email --parsable --remove-first-line | awk 'BEGIN{FS=OFS="\t"}{print $2, $1}\' > ${config.xdg.cacheHome}/khard-dump
|
||||
''}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue