WIP: Nixifyng Floorp, Problems arise from setting Plugins on standard Enable; Solved: Obsidian Notes Vault now getting pulled as default

This commit is contained in:
2026-05-31 16:17:47 +02:00
parent 48eedcabd3
commit 97f475f131
2 changed files with 46 additions and 3 deletions
+2
View File
@@ -104,4 +104,6 @@ in
]; ];
}; };
}; };
home.file.".floorp/default/containers.json".source = ./sideberry.json;
} }
+44 -3
View File
@@ -1,4 +1,45 @@
_: { {
# TODO: Add Automatic Vault pull and detection config,
programs.obsidian.enable = true; pkgs,
lib,
...
}:
let
vaultRepo = "ssh://gitea@git.cyperpunk.de:12222/DerGrumpf/Notes.git";
vaultPath = "${config.home.homeDirectory}/Notes";
sshBinary = "${pkgs.openssh}/bin/ssh";
gitBin = "${pkgs.git}/bin";
gitLfsBin = "${pkgs.git-lfs}/bin";
in
{
programs.obsidian = {
enable = true;
vaults.notes = {
target = "Notes";
settings = { };
};
};
home.packages = with pkgs; [
git
git-lfs
openssh
];
home.activation.obsidianVault = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
export PATH="${gitBin}:${gitLfsBin}:$PATH"
export GIT_SSH_COMMAND="${sshBinary} -o StrictHostKeyChecking=accept-new"
export GIT_LFS_SKIP_SMUDGE=1
if [ ! -d "${vaultPath}/.git" ]; then
echo "Cloning Obsidian vault (LFS objects will be pulled separately)..."
${gitBin}/git clone "${vaultRepo}" "${vaultPath}"
${gitLfsBin}/git-lfs install --local "${vaultPath}"
${gitBin}/git -C "${vaultPath}" lfs pull
else
echo "Pulling latest changes for Obsidian vault..."
${gitBin}/git -C "${vaultPath}" pull
${gitBin}/git -C "${vaultPath}" lfs pull
fi
'';
} }