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

change shell.nix #41

Closed
wants to merge 37 commits into from
Closed

change shell.nix #41

wants to merge 37 commits into from

Conversation

Mic92
Copy link
Owner

@Mic92 Mic92 commented Nov 29, 2024

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Mic92 and others added 30 commits November 29, 2024 21:23
We don't want to use `normal user` here because than uid's from this
service can collide with other users added with static uids added in
nixos configuration. Also normal users would show up in login dialogs
like gdm/lightdm.
Like in the borg-job systemd service, env var values are now passed
verbatim to the borg process.
Previously, the var values were evaluated as bash double quoted strings.
this is nicer because than the other socat command can be also started
after the nixos test.
mkpath is a legacy interface.
this is not best practice perl since a long time.
We were using this option in different places.
Let's just make it an option so it can be also disabled,
as well as makeing sure we have good defaults.

By default we will only change the baud rate to 115200,
as the default one is 9600, which is uncommon these days.
We do not specify --unit=0 as grub will use ACPI to find the serial port
configured in the BIOS.
When using disko, the user can choose their own filesystem layout.
In that case we don't want to specify fileSystems with normal priority
as it would not allow disko to set its own values.
This reverts commit 22e8fd66cf4975cdd1a92202b8cc53a5509cbc1d.
other parts of the ecosystem run after the user activation script to set
up permissions. They now instead need to run after the
systemd-sysusers.service, which they commonly only do if stage1 systemd
is enabled.
Since all the tests currently enable stage1 systemd, this now explicitly
enforce that users have this set.
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