-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup just runner and create recipe to simplify regular tasks
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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,33 @@ | ||
secrets := "secrets/accounts.json" | ||
export SOPS_AGE_FILE := env("SOPS_AGE_FILE", join(env('XDG_CONFIG_HOME'), "sops/age/keys.txt")) | ||
|
||
default: rebuild | ||
|
||
check: | ||
nix flake check | ||
|
||
update: | ||
nix flake update | ||
|
||
reset: | ||
#!/usr/bin/env bash | ||
for f in {{secrets}}; do | ||
git restore "${f}" | ||
done; | ||
encrypt: | ||
#!/usr/bin/env bash | ||
for f in {{secrets}}; do | ||
sops --encrypt --in-place "${f}" | ||
done; | ||
|
||
decrypt: | ||
#!/usr/bin/env bash | ||
for f in {{secrets}}; do | ||
sops --decrypt --in-place "${f}" | ||
done; | ||
rebuild: decrypt && reset | ||
-sudo nixos-rebuild switch --flake ".#" | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
, ... | ||
}: { | ||
home.packages = with pkgs; [ | ||
just | ||
zeal | ||
# hadolint | ||
]; | ||
|