Repository navigation
amd: declare the muse user (sops password hash) #926
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ in | |
| users = [ | ||
| "user" | ||
| "backup" | ||
| "muse" | ||
| "root" | ||
| ]; | ||
| wireless = [ | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| lib, | ||
| config, | ||
| ... | ||
| }: | ||
| { | ||
| imports = [ | ||
| (lib.from-root "nixos/users") | ||
| ]; | ||
| sops.secrets."users/muse/passwordHash" = { | ||
| neededForUsers = true; | ||
| sopsFile = lib.from-root "secrets/sops/users/muse/password_muse.yaml"; | ||
| }; | ||
| users.users.muse = { | ||
| uid = 1338; | ||
| isNormalUser = true; | ||
| hashedPasswordFile = config.sops.secrets."users/muse/passwordHash".path; | ||
| description = "Muse (AI agent)"; | ||
| extraGroups = [ | ||
| "wheel" | ||
| ]; | ||
| openssh.authorizedKeys.keys = [ | ||
| "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQhcm1Z0TGjZT9JgIugIxJmc6xtcVrTDSI0HweJIDtA hatch" | ||
| ]; | ||
| }; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| users: | ||
| muse: | ||
| passwordHash: ENC[AES256_GCM,data:w9PGtpoaTjT0bca9i81QKaUc0GBFQUnKPCi70ZyMaK09MmotHBojD7VEfATLAa6IJwH8trrTOKX7KE9uLz95lgOPojukJVy5MiBa/tnWrY66xhgGL3KPh+dNkiEHKozv3CLESzoqHkUVMQ==,iv:WzmL9jDp0N91vUEDVuS6QHcbdhcSY4l5kBkN96W7n5U=,tag:dRwv6a2VyGS50n0xOKZOlA==,type:str] | ||
| sops: | ||
| age: | ||
| - enc: | | ||
| -----BEGIN AGE ENCRYPTED FILE----- | ||
| YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBvSGRrZXJKNE1RcVdWeU9Y | ||
| bkI2WmEwWDQyYlQ3NUpWRy9EeEZ5MkJJb0FjCjFsNUlmMnVPSHl5NEJPL0sxa0xR | ||
| Skp5UzZTRURjNFl5U29YL1VuTlhQSFEKLS0tIC9EOE0zZ2JiOGNTWEc0RGZ4TGdV | ||
| bDVaZmd0dHhFYU9yeXNRVFp2TU5hQlkKV2zVq1xkMbw0tgBgYC7GrHDCx916QcGf | ||
| kVXpKHniizZbByKCpME7LvJ94wY/+ZHHeY8zl2G8eLfIORz1zjwEaQ== | ||
| -----END AGE ENCRYPTED FILE----- | ||
| recipient: age125acas5y8hnwl5uhcp364xm8zlhtwsjqvxxpge8k04dzzr67acrq0ttc34 | ||
| lastmodified: "2026-10-25T22:28:03Z" | ||
| mac: ENC[AES256_GCM,data:uoI/JUG+a+FX32xSE6oNKwMGGKsqJ+vXZMmzAG1FmGInvIgrILgNDJ0jLmc4sE33doEwQbtDS8S3CEVUPlgPa3mx327IUIXIETiQPPXTooQkhjROP71ZX7St7l8sLrRKF+RVzjIRRNGC9PFyvM9GF4RIo3Ok1zdhcP56HZ2jQa8=,iv:8jRnCiXxEhQt4JQLGcSh+AhEqmPCdAqw/RHxpp9O0z4=,tag:sC+h4OA2/qYlSwSpsmy4+Q==,type:str] | ||
| unencrypted_suffix: _unencrypted | ||
| version: 3.13.2 | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔎 Supported by static analysis
Script executed:
Repository: developing-today/code
Length of output: 18481
Script executed:
Repository: developing-today/code
Length of output: 5401
Script executed:
Repository: developing-today/code
Length of output: 4004
Script executed:
Repository: developing-today/code
Length of output: 4830
Script executed:
Repository: developing-today/code
Length of output: 1202
Reformat
secrets/sops/users/muse/password_muse.yamlbefore merge.The CI formatting check runs on changed YAML files. It rejects this file because the file uses 4-space indentation, and the configured formatter normalizes it to 2 spaces. The
Check formatting for changed filesstep in thetreefmtjob runsnix run .#format-checkon every added or modified file in the PR. That command runstreefmt --fail-on-change, which exits non-zero when a formatter changes a file. Prettier is configured for*.yamland*.yml. No exclude coverssecrets/. The root.editorconfigsetsindent_size=2for all files. Prettier rewrites the nestedusers:andsops:mappings from 4-space to 2-space indentation, so the check fails for this commit.Run the repository formatter on the file and commit the result:
Reindenting does not change the encrypted values, the
mac, or thelastmodifiedfield. SOPS authenticates the decrypted values, not their YAML whitespace. Verify the result withtreefmt --fail-on-change secrets/sops/users/muse/password_muse.yamlbefore pushing.🧰 Tools
🪛 GitHub Actions: nix ci / 0_treefmt check.txt
[error] 1-1: The format check (
nix run .#format-check -- ...) modified this file; 1 of 3 files was changed. The check failed because--fail-on-changeis enabled.🪛 GitHub Actions: nix ci / treefmt check
[error] 1-1: The format check command
nix run .#format-check -- ...failed because formatting changed this file (size changed from 1263 to 1211 bytes). The check runs with--fail-on-changeenabled; format the file and commit the change.