Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(just): Better just secrets module

Update to actually fit the agenix-rekey workflow

+23 -9
+17 -5
just/secrets.just
··· 1 - # Grabs a host's SSH key and generates the corresponding age key 2 - @get-host-key host: 3 - nix shell nixpkgs#ssh-to-age nixpkgs#openssh \ 4 - --command ssh-keyscan localhost 2>/dev/null \ 5 - | ssh-to-age 2>/dev/null 1 + # Edit a secret 2 + edit *args: 3 + agenix edit {{args}} 4 + 5 + # View a secret 6 + view *args: 7 + agenix view {{args}} 8 + 9 + # Rekey secrets 10 + rekey *args: 11 + agenix rekey {{args}} 12 + 13 + # Get host keys 14 + getkeys hostname='localhost': 15 + ssh-keyscan {{hostname}} 2>/dev/null \ 16 + | grep --regexp "^[^#][^ ]* ssh-" \ 17 + | sort
+3 -1
just/tests.just
··· 1 + set working-directory := '../' 2 + 1 3 # Runs tests 2 4 run *args: 3 5 nix run .#nixtests:run -- \ 4 - --snapshot-dir {{justfile_directory()}}/nix/tests/_snapshots \ 6 + --snapshot-dir ./nix/tests/_snapshots \ 5 7 {{args}} 6 8 7 9 # Updates test snapshots
+2 -2
just/theme.just
··· 1 1 # Opens the current stylix color scheme in a browser 2 - @inspect-theme: 3 - firefox $(readlink -f /etc/stylix/palette.html) 2 + @inspect: 3 + xdg-open "$(readlink -f ~/.config/stylix/palette.html)" 2>&1 >/dev/null
+1 -1
justfile
··· 1 1 _default: 2 - just --list --list-submodules --unsorted 2 + @just --list --list-submodules --unsorted 3 3 4 4 mod home './just/home.just' 5 5 mod secrets './just/secrets.just'