justfile: init
This commit is contained in:
parent
f475243b94
commit
4476cdcbbc
14
justfile
Normal file
14
justfile
Normal file
@ -0,0 +1,14 @@
|
||||
export GUM_FILTER_HEIGHT := "15"
|
||||
nom := `if command -v nom >/dev/null; then echo nom; else echo nix; fi`
|
||||
|
||||
@_default:
|
||||
just "$(gum choose --ordered --header "Pick a recipie..." $(just --summary --unsorted))"
|
||||
|
||||
check:
|
||||
nix flake check --keep-going
|
||||
|
||||
build-machine machine=`just _a_machine`:
|
||||
{{nom}} build .#nixosConfigurations.{{ machine }}.config.system.build.toplevel
|
||||
|
||||
_a_machine:
|
||||
nix eval .#nixosConfigurations --apply builtins.attrNames --json | jq .[] -r | gum filter
|
@ -1,6 +1,9 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
justfile
|
||||
jq
|
||||
gum
|
||||
sops
|
||||
gnupg
|
||||
openstackclient
|
||||
|
Loading…
x
Reference in New Issue
Block a user