diff --git a/hosts/home.nix b/hosts/home.nix index 2b0379a..caa6187 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -113,6 +113,7 @@ in inkscape obs-studio qbittorrent + (pkgs.callPackage ../pureref.nix { }) # Games prismlauncher diff --git a/i3.nix b/i3.nix index c27fb1a..c3ad0be 100644 --- a/i3.nix +++ b/i3.nix @@ -103,6 +103,10 @@ in { command = "floating enable"; criteria = { class = "Nextcloud"; }; } + { + command = "floating enable"; + criteria = { class = "PureRef"; }; + } ]; bars = []; }; diff --git a/pureref.nix b/pureref.nix new file mode 100644 index 0000000..ca9508d --- /dev/null +++ b/pureref.nix @@ -0,0 +1,19 @@ +{ lib, appimageTools, requireFile }: + +appimageTools.wrapType1 rec { + pname = "pureref"; + version = "1.11.1"; + + src = requireFile { + name = "PureRef-${version}_x64.Appimage"; + sha256 = "05naywdgykqrsgc3xybskr418cyvbx7vqs994yv9w8zf98gxvbvm"; + url = "https://www.pureref.com/download.php"; + }; + + meta = with lib; { + description = "Reference Image Viewer"; + homepage = "https://www.pureref.com"; + license = licenses.unfree; + platforms = platforms.linux; + }; +}