No description
  • Nix 72%
  • Shell 13.7%
  • Python 8.5%
  • Just 4.6%
  • CSS 1.2%
Find a file
2026-03-10 16:14:27 +03:00
.cursor/rules Add a rule to save time not checking linter errors 2026-02-24 13:30:51 +03:00
.vscode Extend tooling with nixfmt. Add corresponding task 2026-02-24 00:08:04 +03:00
hooks Improve pre-commit hook 2026-02-25 16:29:29 +03:00
hosts Create a boostrap config for home server 2026-03-07 20:42:25 +03:00
lib Add mutable vscode configuration 2026-02-25 15:23:13 +03:00
modules Set environment.enableAllTerminfo = true; 2026-03-10 16:14:27 +03:00
pkgs Bump Cursor version 2026-02-24 00:30:26 +03:00
scripts Create dyndns updater service 2026-03-07 22:05:47 +03:00
secrets Add initial seafile config 2026-03-09 23:21:14 +03:00
secrets_plain Implement nix-sops secrets management. Add ssh-keys 2026-02-20 20:39:22 +03:00
.gitignore Implement nix-sops secrets management. Add ssh-keys 2026-02-20 20:39:22 +03:00
.sops.yaml Reorganize sops config. Add real ssh keys. 2026-02-21 00:13:14 +03:00
flake.lock fix niri default column width 2026-03-03 12:14:00 +03:00
flake.nix flake-parts 2026-03-03 11:07:18 +03:00
justfile sync external odyssee monitor profile 2026-03-02 22:37:00 +03:00
README.md Move sops keys into root-owned location 2026-03-07 14:43:37 +03:00

Secrets workflow with just

This repository includes helper targets for encrypting and decrypting YAML secrets with sops.

Directories

  • Plain (decrypted) files: secrets_plain/
  • Encrypted files: secrets/

Targets

  • just encrypt [filename]
    • Encrypts all *.yaml/*.yml from secrets_plain/ into secrets/.
    • If filename is provided, encrypts only that file.
  • just decrypt [filename]
    • Requires sudo because the SOPS Age key is stored in /var/lib/sops-nix/key.age.
    • Decrypts all *.yaml/*.yml from secrets/ into secrets_plain/.
    • If filename is provided, decrypts only that file.
  • just sync
    • Copies mutable desktop config state from ~/.config back into tracked files under modules/desktop/dms/.
    • Intended for persisting runtime changes to mutable config files back into the NixOS configuration in this repo.

filename can be passed either with extension (singbox.yaml) or without (singbox).

Examples

Encrypt everything:

just encrypt

Decrypt everything:

sudo just decrypt

Encrypt only one file:

just encrypt singbox
just encrypt singbox.yaml

Decrypt only one file:

sudo just decrypt singbox
sudo just decrypt singbox.yaml

Sync mutable desktop config back into this repo:

just sync

Nix Tooling

  • nixd is installed via modules/nix-goodies.nix and available system-wide after rebuild.
  • Workspace editor integration is configured in this repo:
    • Extension recommendation: .vscode/extensions.json (jnoortheen.nix-ide)
    • Language server settings: .vscode/settings.json (uses nixd and nixfmt)

Git Hooks

  • This repo includes a versioned pre-commit hook at hooks/pre-commit.
  • Install it in a clone with:
just install-hooks
  • The hook runs just format and blocks the commit if any staged .nix file was reformatted, so you can re-stage and commit again.

Deploy to a remote nixos machine (e.g another laptop)

sudo nixos-rebuild --flake ~/nixos/.#pavel-asus switch --target-host user@host --build-host user@host --sudo --ask-sudo-password