Skip to content

Upgrade to nixpkgs-26.05#10

Closed
expede wants to merge 2 commits into
mainfrom
nix-26.05
Closed

Upgrade to nixpkgs-26.05#10
expede wants to merge 2 commits into
mainfrom
nix-26.05

Conversation

@expede

@expede expede commented Jun 5, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 5, 2026 01:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Nix flake pins to the NixOS 26.05 release line and adjusts the system configuration to ensure Grafana has a stable, persisted secret_key across deployments/restarts.

Changes:

  • Bump nixpkgs from nixos-25.11 to nixos-26.05 and home-manager from release-25.11 to release-26.05.
  • Regenerate flake.lock to match the updated input refs/revisions/hashes.
  • Configure Grafana to read security.secret_key from a file and add an ExecStartPre hook to generate it on first boot.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
flake.nix Updates nixpkgs and home-manager inputs to the 26.05 release line.
flake.lock Refreshes locked revisions/hashes for the upgraded inputs.
configuration.nix Adds persisted Grafana secret_key via file provider + pre-start key generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread configuration.nix
Comment on lines +389 to +396
if [ ! -f "${secretKey}" ]; then
${pkgs.coreutils}/bin/install -d -m 0700 -o grafana -g grafana /var/lib/grafana
${pkgs.coreutils}/bin/head -c 32 /dev/urandom \
| ${pkgs.coreutils}/bin/base64 \
> "${secretKey}"
${pkgs.coreutils}/bin/chmod 0400 "${secretKey}"
${pkgs.coreutils}/bin/chown grafana:grafana "${secretKey}"
fi
@expede expede closed this Jun 8, 2026
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.

2 participants