Skip to content

Latest commit

 

History

History
122 lines (91 loc) · 2.95 KB

README.md

File metadata and controls

122 lines (91 loc) · 2.95 KB

affinity-nix

image

Affinity Photo, Designer, and Publisher applications packaged with nix.

Based on https://github.com/lf-/affinity-crimes and https://affinity.liz.pet/, and uses ElementalWarrior's wine.

Usage Instructions

1. Perform a first time setup

Perform the first time setup which will manipluate $XDG_DATA_HOME/affinity/.

nix run github:mrshmllow/affinity-nix#photo

nix run github:mrshmllow/affinity-nix#designer

nix run github:mrshmllow/affinity-nix#publisher

2. Install the applications on your system (Optional)

2.1 Install with nix-profile

nix profile install github:mrshmllow/affinity-nix#photo

nix profile install github:mrshmllow/affinity-nix#designer

nix profile install github:mrshmllow/affinity-nix#publisher

2.2 Install on NixOS / Home Manager

Install on NixOS

The following is an example. Installing this package does not differ to installing a package from any other flake.

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

  outputs = inputs @ {
    affinity-nix,
    ...
  }: {
    nixosConfigurations.my-system = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = {inherit inputs;};
      modules = [
        # ...
        {
          environment.systemPackages = [affinity-nix.packages.x86_64-linux.photo];
        }
      ];
    };
  }
}
Install with Home Manager

The following is an example. Installing this package does not differ to installing a package from any other flake.

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

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

3. Updating the applications

Update installations in $XDG_DATA_HOME/affinity/.

nix run github:mrshmllow/affinity-nix#updatePhoto

nix run github:mrshmllow/affinity-nix#updateDesigner

nix run github:mrshmllow/affinity-nix#updatePublisher

4. Troubleshooting, winetricks, wineboot, and more

You can access winetricks, wine, and wineboot with the affinity environment & wine prefix baked in with nix run.

Tip

Armed with these you should be able to follow https://affinity.liz.pet/docs/misc-troubleshooting.html for troubleshooting steps.

nix run github:mrshmllow/affinity-nix#winetricks

nix run github:mrshmllow/affinity-nix#wine

nix run github:mrshmllow/affinity-nix#wine -- winecfg

nix run github:mrshmllow/affinity-nix#wineboot