Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lutris: configuration init #6213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Steinhagen
Copy link
Contributor

Description

Initial work to bring home-manager configuration to Lutris.
Due to some limitation on how Lutris rewrites on runtime the .conf file, only the runners and the extra packages will be addressed in this patchset.
With this change, you can automatically configure Lutris to execute a number of runners using nixpkgs instead of relying on the Appimages.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all or nix develop --ignore-environment .#all using Flakes.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

Maintainer CC

@Steinhagen Steinhagen marked this pull request as draft December 17, 2024 22:49
@Steinhagen Steinhagen force-pushed the lutris-options branch 3 times, most recently from 0d98f78 to a5e2f64 Compare December 18, 2024 07:18
@Steinhagen Steinhagen marked this pull request as ready for review December 18, 2024 07:19
@Steinhagen Steinhagen force-pushed the lutris-options branch 4 times, most recently from 1613380 to 4a32bfc Compare December 18, 2024 19:09
Comment on lines 505 to 510
rapiteanu = {
name = "Viorel-Cătălin Răpițeanu";
email = "[email protected]";
github = "Steinhagen";
githubId = 4029937;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are already in the Nixpkgs maintainers list you don't need to also add yourself here.

Suggested change
rapiteanu = {
name = "Viorel-Cătălin Răpițeanu";
email = "[email protected]";
github = "Steinhagen";
githubId = 4029937;
};

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will remove that.

cfg = config.programs.lutris;

cemuConf = ''
cemu:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing yaml configurations in this way will prevent users of the module from doing settings that are not provided in the module. Are you sure that it won't be necessary to allow users deeper access?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be a need to allow users deeper access to these. I was thinking of adding an extraConf part for cemu, dolphin, duckstation and ppsspp that is user modfiable. If there is a better method for this, please let me know. Also, any example is greatly appreciated!

Initial work to bring home-manager configuration to Lutris. Due to
some limitation on how Lutris rewrites on runtime the .conf file,
only the runners and the extra packages will be addressed in this
patchset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants