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.
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
nix profile install github:mrshmllow/affinity-nix#photo
nix profile install github:mrshmllow/affinity-nix#designer
nix profile install github:mrshmllow/affinity-nix#publisher
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];
}
];
};
}
}
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
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