Compare commits
4 Commits
f6cb934ffb
...
c6684d5146
Author | SHA1 | Date |
---|---|---|
Peder Bergebakken Sundt | c6684d5146 | |
Peder Bergebakken Sundt | 34637e383a | |
Peder Bergebakken Sundt | 0bfa6ac329 | |
Peder Bergebakken Sundt | 4476cdcbbc |
|
@ -47,6 +47,8 @@
|
||||||
"ildkule"
|
"ildkule"
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
|
inherit inputs;
|
||||||
|
|
||||||
nixosConfigurations = let
|
nixosConfigurations = let
|
||||||
unstablePkgs = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
unstablePkgs = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
||||||
nixosConfig = nixpkgs: name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
|
nixosConfig = nixpkgs: name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
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
|
||||||
|
|
||||||
|
@update-inputs:
|
||||||
|
nix eval .#inputs --apply builtins.attrNames --json \
|
||||||
|
| jq '.[]' -r \
|
||||||
|
| gum choose --no-limit --height=15 \
|
||||||
|
| xargs nix flake update --commit-lock-file
|
||||||
|
|
||||||
|
|
||||||
|
_a_machine:
|
||||||
|
nix eval .#nixosConfigurations --apply builtins.attrNames --json | jq .[] -r | gum filter
|
Loading…
Reference in New Issue