Conversation
There was a problem hiding this comment.
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
nixpkgsfromnixos-25.11tonixos-26.05andhome-managerfromrelease-25.11torelease-26.05. - Regenerate
flake.lockto match the updated input refs/revisions/hashes. - Configure Grafana to read
security.secret_keyfrom a file and add anExecStartPrehook 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 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.