Add more personal obsidian configs
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -69,8 +69,8 @@ in
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
"gpg-agent/pgp.key" = { };
|
||||
"gpg-agent/pgp.pass" = { };
|
||||
"gpg-agent/pgp/key" = { };
|
||||
"gpg-agent/pgp/pass" = { };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user