Compare commits

...

2 commits

Author SHA1 Message Date
3a6f72aa84
feat(just): deployAll recipe 2025-03-09 13:23:25 -07:00
87753fa69f
feat(home): Install jq 2025-03-09 13:03:13 -07:00
3 changed files with 36 additions and 0 deletions
Justfile
modules/home/programs/cli

View file

@ -25,6 +25,26 @@ deployRemoteOs host:
--target-host root@{{host}} \
--verbose --log-format internal-json |& nom --json
[group('nixos')]
deployAll:
#!/usr/bin/env fish
set -l systems (nix flake show --all-systems --json \
| jq '.nixosConfigurations | keys[]' \
# Remove literal quotes from values so that contains works.
| string trim --chars \"\'\")
# Remove the current system.
set -l currentSysI (contains --index (hostname) $systems)
if set -q currentSysI[1]
set -e systems[$currentSysI]
end
just deployos
for system in $systems
just deployRemoteOs $system
end
alias dd := deploydarwin
[group('darwin')]
deploydarwin host=defhost:

View file

@ -24,6 +24,7 @@ in {
gpg = enabled;
hyfetch = enabled;
journalctl = enabled;
jq = enabled;
just = enabled;
less = enabled;
man = enabled;

View file

@ -0,0 +1,15 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.programs.jq;
in {
options.marleyos.programs.jq.enable = lib.mkEnableOption "jq";
config = lib.mkIf cfg.enable {
programs.jq = {
enable = true;
};
};
}