Initialize builder stores automatically #170

Open
opened 2025-02-14 13:56:34 +00:00 by raito · 1 comment
raito commented 2025-02-14 13:56:34 +00:00 (Migrated from git.lix.systems)

Builder stores lives in /mnt/nix/store and should be initialized upon first use by doing:

$ nix-store --init --store /mnt
$ chown -R builder:users /mnt/nix

This can be integrated as a systemd service for convergence.

Builder stores lives in `/mnt/nix/store` and should be initialized upon first use by doing: ``` $ nix-store --init --store /mnt $ chown -R builder:users /mnt/nix ``` This can be integrated as a systemd service for convergence.
lheckemann commented 2025-02-14 13:59:01 +00:00 (Migrated from git.lix.systems)

Just creating /mnt/nix owned by builder should be enough, so systemd.tmpfiles.settings."10-hydra-builder"."/mnt/nix".user = "builder";; the rest of the init is done automatically when opening the store.

Just creating `/mnt/nix` owned by `builder` should be enough, so `systemd.tmpfiles.settings."10-hydra-builder"."/mnt/nix".user = "builder";`; the rest of the init is done automatically when opening the store.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: afnix/infra#170
No description provided.