it works!

This commit is contained in:
Till 2026-01-22 16:44:45 +01:00
parent 386d889455
commit 50d6a79e31
15 changed files with 204 additions and 256 deletions

View file

@ -1,8 +1,6 @@
{ config, pkgs, ... }:
{
imports = [ ./khard-dump.nix ];
home.packages = with pkgs; [
astro-language-server
marksman
@ -18,19 +16,7 @@
extraConfig = builtins.readFile ./config.vim;
plugins = with pkgs.vimPlugins;
let
woof = pkgs.vimUtils.buildVimPlugin {
name = "woof.vim";
src = builtins.fetchGit {
url = "ssh://git@shorbut.ktiu.net/home/git/woof.vim/";
ref = "main";
rev = "c29eb50e30ed75cf9ecdcfff198454fcc2c16922";
};
};
in
[
woof
cmp-nvim-lsp
cmp-buffer
cmp-emoji

View file

@ -1,29 +0,0 @@
{ 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
''}";
};
};
};
}