Skip to content

Don't createHome for the hydra user#110722

Merged
Mic92 merged 2 commits intoNixOS:masterfrom
Gabriella439:gabriel/hydra_createHome
Jan 29, 2021
Merged

Don't createHome for the hydra user#110722
Mic92 merged 2 commits intoNixOS:masterfrom
Gabriella439:gabriel/hydra_createHome

Conversation

@Gabriella439
Copy link
Copy Markdown
Contributor

… since hydra-init already takes care of creating /var/lib/hydra,
which is hydra's home directory

Motivation for this change

Fixes #109481

Things done

I tested that this works for the hydra service run by dhall-lang.org: dhall-lang/dhall-lang#1133

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

… since `hydra-init` already takes care of creating `/var/lib/hydra`,
which is `hydra`'s home directory

Fixes NixOS#109481
@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 24, 2021
@aanderse
Copy link
Copy Markdown
Member

aanderse commented Jan 24, 2021

@GrahamcOfBorg test hydra

edit: maybe I need to run that locally...

Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
Copy link
Copy Markdown
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

Diff LGTM. Please squash the commits :)

Nit: if you feel like it, it would also be cool to reflow the comment, because it's a little long for one line IMO.

@cole-h
Copy link
Copy Markdown
Member

cole-h commented Jan 26, 2021

@ofborg test hydra

@Mic92 Mic92 merged commit 80f6769 into NixOS:master Jan 29, 2021
aforemny pushed a commit to aforemny/nixpkgs that referenced this pull request Mar 4, 2021
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running activation script causes Hydra to fail with permissions error

4 participants