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

Xonsh #5494

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Xonsh #5494

wants to merge 13 commits into from

Conversation

pasqui23
Copy link
Contributor

@pasqui23 pasqui23 commented Jun 3, 2024

Description

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

finalPackage = lib.mkOption {
type = types.package;
internal = true;
description = "Package that will actually gat installed";
Copy link

Choose a reason for hiding this comment

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

Suggested change
description = "Package that will actually gat installed";
description = "Package that will actually get installed";

Comment on lines 43 to 49
home = {
packages = [ cfg.finalPackage ];
file.".xonshrc" = {
enable = cfg.xonshrc != "";
text = cfg.xonshrc;
};
};
Copy link

Choose a reason for hiding this comment

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

I think it's better to respect XDG.

Suggested change
home = {
packages = [ cfg.finalPackage ];
file.".xonshrc" = {
enable = cfg.xonshrc != "";
text = cfg.xonshrc;
};
};
home.packages = [ cfg.finalPackage ];
xdg.configFile."xonsh/rc.xsh" = {
enable = cfg.xonshrc != "";
text = cfg.xonshrc;
};

Another option is how #5160 does it: split by files. It's directly supported by xonsh.

Which one is better? I don't know, but you and @inmaldrerah should probably join efforts.

Thanks both!

cfg.package.override (old: { inherit (cfg) extraPackages; });
};
};
xdg.configFile."xonsh/rc.xsh" = {

Choose a reason for hiding this comment

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

This xdg.configFile."xonsh/rc.xsh" entry should be in the previous config block.

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

3 participants