mrshmllow / affinity-nix

Affinity Photo, Designer, and Publisher packaged with Nix
28 stars 1 forks source link

How to run again? #5

Closed rastarr closed 1 month ago

rastarr commented 3 months ago

thanks so much for this repo. i managed to install affinity photo. once you quit the app, how do you run it again though? I'm not seeing it in my i3 run menu so a bit confused and a total newbie at Wine

mrshmllow commented 2 months ago

Hey hey, sorry ive been busy and unable to respond to github. How did you install the application? If you install it through nix the .desktop files should exist. If not, it may be a bug in this repo.

The code examples just run it one-shot

rastarr commented 2 months ago

it's ok now and thanks for the reply. The affinity apps are too flakey and unstable for my liking. I'll continue using a Windows VM for Affinity and Itunes. Maybe one bright sunny day, Affinity might come to native Linux but I won't hold my breathe :)

mrshmllow commented 2 months ago

Yep I feel the same tbh

On Thu, Aug 29, 2024, 1:34 PM Martin @.***> wrote:

it's ok now and thanks for the reply. The affinity apps are too flakey and unstable for my liking. I'll continue using a Windows VM for Affinity and Itunes. Maybe one bright sunny day, Affinity might come to native Linux but I won't hold my breathe :)

— Reply to this email directly, view it on GitHub https://github.com/mrshmllow/affinity-nix/issues/5#issuecomment-2316648544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVHQWVOGM4AFPHZDQFO53TZT2JDXAVCNFSM6AAAAABMKTGNH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWGY2DQNJUGQ . You are receiving this because you commented.Message ID: @.***>

emenel commented 1 month ago

i realize that it might be flaky, but i'd still love to understand how to install these in my nixos/home-manager system if possible. i've tried a few different things but so far nothing has worked.

thanks for all the work on this!

mrshmllow commented 1 month ago

i realize that it might be flaky, but i'd still love to understand how to install these in my nixos/home-manager system if possible. i've tried a few different things but so far nothing has worked.

You can use nix profile install nix profile install github:mrshmllow/affinity-nix#photo

Otherwise, add this repo as a flake input, then just access affinity-nix.packages.x86_64-linux.photo anywhere you would install a package.

{
  inputs = {
    affinity-nix.url = "github:mrshmllow/affinity-nix";
    ...
  };

  outputs = inputs @ {
    affinity-nix,
    ...
  }: {
    homeConfigurations.marsh = home-manager.lib.homeManagerConfiguration {
      pkgs = nixpkgs.legacyPackages."x86_64-linux";
      extraSpecialArgs = {inherit inputs;};
      modules = [
        {
          home.packages = [affinity-nix.packages.x86_64-linux.photo];
        }
      ];
    };
  }
}

this applies to every flake that exposes a package :)

if you want to run the other scripts like updatePhoto, use nix run like in the readme