refactor: complete rewrite
This commit is contained in:
parent
19a4bbda3c
commit
8e81943cf9
399 changed files with 3396 additions and 8042 deletions
30
modules/home/workstation/productivity/obsidian.nix
Normal file
30
modules/home/workstation/productivity/obsidian.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf elem hm;
|
||||
inherit (osConfig.ooknet.workstation) profiles;
|
||||
# admin = osConfig.ooknet.host.admin;
|
||||
# TODO: use admin.githubUsername
|
||||
notesRepo = "git@github.com:ooks-io/notes.git";
|
||||
notesPath = "${config.xdg.userDirs.documents}/notes";
|
||||
in {
|
||||
config = mkIf (elem "productivity" profiles) {
|
||||
home.packages = [pkgs.obsidian];
|
||||
home.activation.cloneObsidianVault =
|
||||
hm.dag.entryAfter ["installPackages"]
|
||||
/*
|
||||
shell
|
||||
*/
|
||||
''
|
||||
if ! [ -d "${notesPath}" ]; then
|
||||
$DRY_RUN_CMD git clone ${notesRepo} ${notesPath}
|
||||
fi
|
||||
'';
|
||||
|
||||
ooknet.binds.notes = "obsidian";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue