Add more personal obsidian configs

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-07-23 19:07:59 +01:00
parent 2c1da71951
commit 01684dca93
17 changed files with 641 additions and 112 deletions

View File

@@ -69,8 +69,8 @@ in
};
sops.secrets = {
"gpg-agent/pgp.key" = { };
"gpg-agent/pgp.pass" = { };
"gpg-agent/pgp/key" = { };
"gpg-agent/pgp/pass" = { };
};
};
}

View File

@@ -1,5 +1,10 @@
for keyfile in "$HOME"/.config/sops-nix/secrets/gpg-agent/*.key; do
passfile="${keyfile%.key}.pass"
for dir in "$HOME"/.config/sops-nix/secrets/gpg-agent/*; do
keyfile="$dir/key"
passfile="$dir/pass"
if [ ! -f "$keyfile" ]; then
continue
fi
if [ -f "$passfile" ]; then
gpg2 --batch --yes --pinentry-mode loopback --passphrase-file "$passfile" --import "$keyfile"

View File

@@ -18,7 +18,11 @@ in
xdg = {
enable = true;
mimeApps.enable = true;
portal.extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
portal = {
xdgOpenUsePortal = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
userDirs = {
enable = true;
@@ -29,16 +33,19 @@ in
};
};
home.persistence."/persist${userConfig.home}".directories = with hmConfig.xdg.userDirs; [
relativeDesktop
relativeDocuments
relativeDownload
relativeMusic
relativePictures
relativeTemplates
relativeVideos
"VMs"
"git"
];
home = {
packages = with pkgs; [ xdg-utils ];
persistence."/persist${userConfig.home}".directories = with hmConfig.xdg.userDirs; [
relativeDesktop
relativeDocuments
relativeDownload
relativeMusic
relativePictures
relativeTemplates
relativeVideos
"VMs"
"git"
];
};
};
}