OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
main @ 31 LINES
 
[ HISTORY ]  [ UP ]
 

{
  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 = "[email protected]:ooks-io/notes.git";
  notesPath = "${config.xdg.userDirs.extraConfig.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";
  };
}

{
  lib,
  config,
  osConfig,
  pkgs,
  ...
}: let
  inherit (lib) mkIf elem hm;
  inherit (osConfig.ooknet.workstation) prof
iles;
  # admin = osConfig.ooknet.host.admin;
  # TODO: use admin.githubUsername
  notesRepo = "[email protected]:ooks-io/notes.
git";
  notesPath = "${config.xdg.userDirs.extraCo
nfig.NOTES}";
in {
  config = mkIf (elem "productivity" profile
s) {
    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";
  };
}
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET