Compare commits
2 commits
bc921ec108
...
3a6f72aa84
Author | SHA1 | Date | |
---|---|---|---|
3a6f72aa84 | |||
87753fa69f |
3 changed files with 36 additions and 0 deletions
20
Justfile
20
Justfile
|
@ -25,6 +25,26 @@ deployRemoteOs host:
|
||||||
--target-host root@{{host}} \
|
--target-host root@{{host}} \
|
||||||
--verbose --log-format internal-json |& nom --json
|
--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
|
alias dd := deploydarwin
|
||||||
[group('darwin')]
|
[group('darwin')]
|
||||||
deploydarwin host=defhost:
|
deploydarwin host=defhost:
|
||||||
|
|
|
@ -24,6 +24,7 @@ in {
|
||||||
gpg = enabled;
|
gpg = enabled;
|
||||||
hyfetch = enabled;
|
hyfetch = enabled;
|
||||||
journalctl = enabled;
|
journalctl = enabled;
|
||||||
|
jq = enabled;
|
||||||
just = enabled;
|
just = enabled;
|
||||||
less = enabled;
|
less = enabled;
|
||||||
man = enabled;
|
man = enabled;
|
||||||
|
|
15
modules/home/programs/cli/jq/default.nix
Normal file
15
modules/home/programs/cli/jq/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue