diff --git a/home/hooks.nix b/home/hooks.nix index 1448986..8e4781f 100644 --- a/home/hooks.nix +++ b/home/hooks.nix @@ -41,6 +41,23 @@ echo "Dotfiles bootstrapped successfully." ''; + setupNotes = lib.hm.dag.entryAfter ["writeBoundary"] '' + if [[ -v DRY_RUN ]]; then + echo "Dry run: Would initialise Notes from labs.scarif.space" + exit + fi + + NOTES_DIR="$HOME/Notes" + + if [ ! -d "$NOTES_DIR" ]; then + echo "No local repository so cloning from remote" + SOURCE="https://labs.scarif.space/chris/notes.git" + ${pkgs.git}/bin/git clone -b main "$SOURCE" "$NOTES_DIR" + echo "Notes downloaded successfully." + else + echo "Notes directory already exists, skipping clone" + fi + ''; setupDevDirectories = lib.hm.dag.entryAfter ["writeBoundary"] '' if [[ -v DRY_RUN ]]; then echo "Dry run: Would create dev directories" diff --git a/home/impermanence.nix b/home/impermanence.nix index 7f16cbe..6ec7d53 100644 --- a/home/impermanence.nix +++ b/home/impermanence.nix @@ -30,6 +30,7 @@ ".local/share/gradle" ".local/share/keyrings" ".local/share/krita" + ".local/share/Libation" ".local/share/nvim" ".local/share/station" ".local/share/voxtype" @@ -42,6 +43,7 @@ ".steam" ".minecraft" "Code" + "Notes" "Downloads" "Tower" ]; diff --git a/home/packages.nix b/home/packages.nix index 827f733..98c831c 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -39,7 +39,7 @@ in imv # Image viewer inkscape # Vector graphics software pkgs-unstable.krita # Custom digital art software (from AppImage) - pkgs-unstable.libation # Audible book manager + # pkgs-unstable.libation # Audible book manager libreoffice-fresh # Office suite pkgs-unstable.atlauncher # Minecraft launcher mpv # Video player @@ -69,6 +69,15 @@ in } ''; }; + xdg.desktopEntries = { + libation = { + name = "Libation (On demand)"; + exec = "nix run \"github:NixOS/nixpkgs/nixos-unstable#libation\""; + terminal = true; + categories = [ "Utility" ]; + icon = "libation"; + }; + }; # xdg.desktopEntries.enpass = { # type = "Application"; # name = "Enpass";