From 227a018fb95ac25aaf67d9163fffea24a973cef9 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 18 Jul 2023 01:02:44 +0200 Subject: [PATCH] Added khal --- flake.lock | 21 +++++++++++++++++++++ home/features/cli/khal.nix | 16 ++++++++++++++++ home/features/neovim/default.nix | 2 +- home/tethys.nix | 1 + 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 home/features/cli/khal.nix diff --git a/flake.lock b/flake.lock index 97318d8..6a305c5 100644 --- a/flake.lock +++ b/flake.lock @@ -81,6 +81,26 @@ "type": "github" } }, + "disko": { + "inputs": { + "nixpkgs": [ + "nixpkgs-unstable" + ] + }, + "locked": { + "lastModified": 1689324677, + "narHash": "sha256-83DCDJwBkulQFQESe37+tG0qUb8JkQLJHJ3Qn7iGx7Q=", + "owner": "nix-community", + "repo": "disko", + "rev": "7eb09408393faa5b8f3b3524c39cb93d938e8d04", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "disko", + "type": "github" + } + }, "firefox-addons": { "inputs": { "flake-utils": "flake-utils", @@ -818,6 +838,7 @@ "inputs": { "agenix": "agenix", "catppuccin-base16": "catppuccin-base16", + "disko": "disko", "firefox-addons": "firefox-addons", "grub2-themes": "grub2-themes", "home-manager": "home-manager_2", diff --git a/home/features/cli/khal.nix b/home/features/cli/khal.nix new file mode 100644 index 0000000..8435268 --- /dev/null +++ b/home/features/cli/khal.nix @@ -0,0 +1,16 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ khal ]; + xdg.configFile."khal/config".text = '' + [calendars] + [[calendars]] + path = ~/Calendars/* + type = discover + + [locale] + timeformat = %H:%M + dateformat = %d/%m/%Y + ''; + satellite.persistence.at.data.apps.khal.directories = [ + "Calendars" + ]; +} diff --git a/home/features/neovim/default.nix b/home/features/neovim/default.nix index cb89374..f4d4e1a 100644 --- a/home/features/neovim/default.nix +++ b/home/features/neovim/default.nix @@ -1,5 +1,5 @@ # TODO(imperanence): handle persistence of things like harpoon, lazy, etc -{ pkgs, upkgs, lib, config, paths, inputs, ... }: +{ pkgs, upkgs, lib, config, inputs, ... }: let # {{{ extraPackages extraPackages = with pkgs; [ diff --git a/home/tethys.nix b/home/tethys.nix index 292f83f..0b7b37c 100644 --- a/home/tethys.nix +++ b/home/tethys.nix @@ -6,6 +6,7 @@ ./features/desktop/spotify.nix ./features/desktop/firefox ./features/desktop/discord + ./features/cli/khal.nix ./features/xorg/xmonad.nix ./features/wayland/hyprland