home/home/graphical.nix
2024-06-05 00:44:38 +02:00

27 lines
726 B
Nix

{ pkgs, xdg-runtime-dir }:
let
alacritty = import ./alacritty/alacritty.nix pkgs;
alloy6-mac = pkgs.stdenv.mkDerivation rec {
name = "alloy6";
version = "6.0.0";
src = pkgs.fetchurl {
url = "https://github.com/AlloyTools/org.alloytools.alloy/releases/download/v${version}/alloy.dmg";
sha256 = "sha256-tRMAQQuWq+aWvhS+mLUnfIpzLw1ydepiuD16uFFRvlI=";
};
nativeBuildInputs = [ pkgs.undmg ];
sourceRoot = ".";
installPhase = ''
mkdir -p $out/Applications
cp -r Alloy.app $out/Applications
'';
};
in rec {
home.packages = with pkgs; [
fira-code ibm-plex
] ++ (if pkgs.stdenv.isDarwin then [alloy6-mac] else [pkgs.alloy6]);
programs.alacritty = alacritty;
}