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

rio: add module #4118

Merged
merged 1 commit into from
Sep 18, 2023
Merged

rio: add module #4118

merged 1 commit into from
Sep 18, 2023

Conversation

otavio
Copy link
Contributor

@otavio otavio commented Jun 19, 2023

Description

Adds a programs.rio module to control Rio installation and configuration.

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.

@otavio otavio force-pushed the add-rio branch 3 times, most recently from 46a25df to a48b24a Compare June 19, 2023 17:47
})

(lib.mkIf (cfg.settings != { } && isDarwin) {
home.file."Library/Application Support/rio/config.toml".source =
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe xdg.configFile does that automatically ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you sure? it doesn't seem to be the case. Can you point me the source code where this is set?

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 changed the code and let the tests run and it failed. So it doesn't work indeed.

zsh-session-variables: OK
rio-example-settings: FAILED
Expected home-files/Library/Application Support/rio/config.toml to exist but it was not found.
For further reference please introspect /nix/store/ph3drnq8yckanhmkqz1jp0gmgj4l7nsg-nmt-report-rio-example-settings

@otavio otavio force-pushed the add-rio branch 2 times, most recently from 8292792 to 18efc77 Compare June 21, 2023 16:50
@otavio otavio requested a review from teto June 21, 2023 16:50
modules/programs/rio.nix Outdated Show resolved Hide resolved
@nyabinary
Copy link

What's the status on this so far? @otavio

@otavio
Copy link
Contributor Author

otavio commented Sep 17, 2023

AFAIK it is ready, I just need to rebase.

@nyabinary
Copy link

@otavio Nice! I was going to make my own rio module but seeing as it's ready I'll just wait.

@otavio
Copy link
Contributor Author

otavio commented Sep 18, 2023

Please give it a try

@nyabinary
Copy link

@otavio Did some light testing and it seems to work fine :)

modules/programs/rio.nix Outdated Show resolved Hide resolved
@teto
Copy link
Collaborator

teto commented Sep 18, 2023

needs a rebase

Signed-off-by: Otavio Salvador <[email protected]>
@otavio otavio requested a review from teto September 18, 2023 14:57
@teto teto merged commit f092a92 into nix-community:master Sep 18, 2023
3 checks passed
@otavio otavio deleted the add-rio branch September 18, 2023 20:53
fufexan pushed a commit to fufexan/home-manager that referenced this pull request Feb 24, 2024
Adds a programs.rio module to control Rio installation and configuration, a gpu accelerated terminal

Signed-off-by: Otavio Salvador <[email protected]>
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.

None yet

4 participants