diff options
author | sefidel <contact@sefidel.net> | 2022-05-01 17:09:51 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-05-01 17:09:51 +0900 |
commit | f968bc057ea300103d6ca42f6f55b1e4e7cea8ac (patch) | |
tree | 2714a02d06c30453988a1399b2adba27f6d582e6 | |
parent | de86a519f672262b4ee0cb6cf4a2354766f1bc8f (diff) | |
download | nixrc-f968bc057ea300103d6ca42f6f55b1e4e7cea8ac.tar.gz nixrc-f968bc057ea300103d6ca42f6f55b1e4e7cea8ac.zip |
chore: note taking
-rw-r--r-- | home/profiles/base/default.nix | 4 | ||||
-rw-r--r-- | home/profiles/research/default.nix | 3 | ||||
-rw-r--r-- | packages/athens.nix | 33 | ||||
-rw-r--r-- | packages/default.nix | 1 |
4 files changed, 38 insertions, 3 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index 524f602..082e205 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -4,7 +4,7 @@ let neotheme = config.neotheme; - inherit (self.packages.x86_64-linux) neovim; + inherit (self.packages.x86_64-linux) athens neovim; in { imports = [ @@ -65,6 +65,7 @@ in home.keyboard.layout = "us"; home.packages = [ # Sway + athens pkgs.autotiling pkgs.swaylock-effects pkgs.swaybg @@ -79,6 +80,7 @@ in pkgs.xdg_utils # Nix Tools + pkgs.nix-index pkgs.nix-tree pkgs.nix-top pkgs.nix-update diff --git a/home/profiles/research/default.nix b/home/profiles/research/default.nix index 087b995..8069577 100644 --- a/home/profiles/research/default.nix +++ b/home/profiles/research/default.nix @@ -53,9 +53,8 @@ in pkgs.texlive.combined.scheme-small pkgs.pandoc pkgs.obsidian - pkgs.notion-app-enhanced ]; - nixpkgs.allowedUnfree = [ "notion-app-enhanced-v2.0.18" ]; + nixpkgs.allowedUnfree = [ "obsidian" ]; }; } diff --git a/packages/athens.nix b/packages/athens.nix new file mode 100644 index 0000000..0bf9425 --- /dev/null +++ b/packages/athens.nix @@ -0,0 +1,33 @@ +{ lib, fetchurl, appimageTools }: + +let + pname = "athens"; + version = "2.0.0-beta.30"; + + src = fetchurl { + url = "https://github.com/athensresearch/athens/releases/download/v${version}/Athens-${version}.AppImage"; + name = "Athens-${version}.AppImage"; + sha256 = "sha256-UIhVh7Ywbrgu6QBBQSsPp4l0ELRR0Jb2vR2VbH5A17U="; + }; + appimageContents = appimageTools.extract { inherit pname version src; }; +in +appimageTools.wrapType2 { + inherit pname version src; + + extraInstallCommands = '' + mv $out/bin/${pname}-${version} $out/bin/${pname} + install -m 444 -D ${appimageContents}/athens.desktop -t $out/share/applications + substituteInPlace $out/share/applications/athens.desktop \ + --replace 'Exec=AppRun' 'Exec=${pname}' + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/athens.png \ + -t $out/share/icons/hicolor/512x512/apps + ''; + + meta = with lib; { + description = "Open-source knowledge graph"; + homepage = "https://github.com/athensresearch/athens"; + license = licenses.epl10; + maintainers = with maintainers; [ bbigras ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/packages/default.nix b/packages/default.nix index 99ad632..811fcfd 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -11,4 +11,5 @@ in ${vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/.codelldb-wrapped_ \ --liblldb ${vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/lldb/lib/liblldb.so $@ ''; + "athens" = pkgs.callPackage ./athens.nix { }; } |