home-manager icon indicating copy to clipboard operation
home-manager copied to clipboard

bug: Alacritty doesn't show up in Applications (OSX)

Open jjant opened this issue 1 year ago • 3 comments

Are you following the right branch?

  • [X] My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • [X] I have searched the existing issues

Issue description

I tried to install alacritty with home manager in OSX Monterey and it doesn't show up in my Applications, so I can't easily launch it standalone (I can only run alacritty from an existing terminal).

This is my ~/.config/nixpkgs/home.nix:

{ configs, pkgs, ... }:
{
  home.username = "something";
  home.homeDirectory = "/Users/something";

  home.stateVersion = "22.05";

  home.packages = [
    pkgs.neovim
  ];

  programs.home-manager.enable = true;

  programs.alacritty = {
    enable = true;
    settings = {
      font.size = 15;
    };
  };
}

Maintainer CC

Maybe @hyperfekt @rycee?

System information

 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.6.0, macOS 12.5.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.11.0`
 - channels(jjantdev): `"home-manager-22.05.tar.gz"`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

jjant avatar Sep 15 '22 12:09 jjant

In my experience Alacritty closing immediately is caused by missing drivers. In that case this is an issue related to your system rather than a Home-Manager issue. On my system I use nixGL to wrap Alacritty and fix the driver issue.

loicreynier avatar Sep 15 '22 12:09 loicreynier

@loicreynier Thanks, it turns out that that was a separate issue (a program was crashing on startup, I could debug it with alacritty --hold). I've updated the issue to only mention the current problem (alacritty not showing up in applications).

jjant avatar Sep 15 '22 13:09 jjant

I have no experience in Nix on macOs but from the Nix package source it seems that "Applications" files are copied to the environment. If I understand correctly, I don't think it is related specifically to Alacrity. Do you have any other Home-Manager programs installed that are appearing in "Applications"? If not you may have a look at issue #1341.

loicreynier avatar Sep 15 '22 14:09 loicreynier