Skip to content

vicinae service: init#8093

Merged
khaneliman merged 2 commits intonix-community:masterfrom
leiserfg:push-louqkyuwrmtp
Nov 4, 2025
Merged

vicinae service: init#8093
khaneliman merged 2 commits intonix-community:masterfrom
leiserfg:push-louqkyuwrmtp

Conversation

@leiserfg
Copy link
Copy Markdown
Contributor

Description

Adds service for vecinae.
The code is mostly verbatim from https://github.com/vicinaehq/vicinae/blob/main/nix/vicinae.nix
with the main difference that I moved the logic for packaging extensions into the module itself.

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • 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.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@leiserfg
Copy link
Copy Markdown
Contributor Author

@schromp I'm tagging you so you are aware.

Copy link
Copy Markdown
Collaborator

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

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

Just some stuff to follow our latest patterns.

@leiserfg
Copy link
Copy Markdown
Contributor Author

leiserfg commented Nov 1, 2025

Thanks for the review @khaneliman

@leiserfg
Copy link
Copy Markdown
Contributor Author

leiserfg commented Nov 2, 2025

Given that auto-starting is optional, should I move this to programs instead of services ?

@khaneliman
Copy link
Copy Markdown
Collaborator

Given that auto-starting is optional, should I move this to programs instead of services ?

Yeah probably could make more sense that way

@khaneliman
Copy link
Copy Markdown
Collaborator

Could you add some basic tests and a news entry, please.

@leiserfg
Copy link
Copy Markdown
Contributor Author

leiserfg commented Nov 3, 2025

I had to bump nixpkgs as the one that home-manager had, didn't include vicinae.

@leiserfg leiserfg force-pushed the push-louqkyuwrmtp branch 2 times, most recently from dbe872a to 941cca6 Compare November 3, 2025 16:03
Comment on lines +20 to +57
@@ -54,7 +54,7 @@

''}
assertFileContent $lightModeScriptFile ${builtins.toFile "expected" ''
#!@python@/bin/python
#!@python3@/bin/python
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These are unrelated changes. Could you remove them

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, I did it in order to make the tests pass after updating nixpkgs, I just fixed this one in a different manner to master 😄

Copy link
Copy Markdown
Collaborator

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

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

sorry, just realized this was also generating json and should also use the generator

leiserfg and others added 2 commits November 3, 2025 20:31
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
@khaneliman khaneliman enabled auto-merge (rebase) November 4, 2025 03:18
@khaneliman khaneliman merged commit 6feb368 into nix-community:master Nov 4, 2025
7 checks passed
Documentation = [ "https://docs.vicinae.com" ];
After = [ cfg.systemd.target ];
PartOf = [ cfg.systemd.target ];
BindsTo = [ cfg.systemd.target ];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think this unit should have used BindsTo as it blocks logout (at least for plasma) when vicinae service is running.

Copy link
Copy Markdown
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 that is it? BindsTo is a direct relationship not a reverse one.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I also had the same problem with cloudflare warp NixOS/nixpkgs#434733

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll make a PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

3 participants