From 333fc3fe409ea2c8635cdd299877a3f3e642f2ab Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Sun, 2 Jul 2023 13:51:38 -0600 Subject: [PATCH] [NixOS] Add home-manager and obsidian syncing for kat --- nixos/kat.nix | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/nixos/kat.nix b/nixos/kat.nix index eaf1a3e7..43118f88 100644 --- a/nixos/kat.nix +++ b/nixos/kat.nix @@ -4,4 +4,31 @@ bitwarden obsidian ]; -} \ No newline at end of file + + home-manager.users.kat = { pkgs, config, ... }: { + services.gpg-agent = { + enable = true; + defaultCacheTtl = 8 * 60 * 60; + maxCacheTtl = 8 * 60 * 60; + enableSshSupport = true; + pinentryFlavor = "qt"; + }; + + services.kdeconnect = { + enable = true; + indicator = true; + }; + + services.git-sync = { + enable = true; + repositories = { + obsidian = { + path = config.home.homeDirectory + "/obsidian"; + uri = "git@github.com:katandtonic/obsidian.git"; + }; + }; + }; + + home.stateVersion = "23.11"; + }; +}