justfile with params
This commit is contained in:
parent
12466783f7
commit
2d99617d89
42
Justfile
42
Justfile
@ -1,38 +1,24 @@
|
||||
default: nixos
|
||||
default: nova
|
||||
|
||||
all: nixos music nonya ai
|
||||
all: nova (nova "music")
|
||||
|
||||
home:
|
||||
home-manager switch --flake ./. -b $(mktemp -u XXXX)
|
||||
|
||||
nixos:
|
||||
doas nixos-rebuild switch --flake ./.
|
||||
nova config="nova":
|
||||
#!/usr/bin/env sh
|
||||
cfg={{config}}
|
||||
if [ "$cfg" != "nova" ]; then
|
||||
cfg="nova-{{config}}"
|
||||
fi
|
||||
doas nixos-rebuild switch --flake ./#"$cfg"
|
||||
|
||||
update:
|
||||
nix flake update
|
||||
nix flake update
|
||||
|
||||
clean: cleanRoot cleanHome
|
||||
|
||||
cleanHome:
|
||||
nix-collect-garbage --delete-older-than 90d
|
||||
|
||||
cleanRoot:
|
||||
doas nix-collect-garbage --delete-older-than 90d
|
||||
|
||||
news:
|
||||
home-manager news --flake ./.
|
||||
|
||||
music:
|
||||
doas nixos-rebuild switch --flake ./#music
|
||||
|
||||
nonya:
|
||||
doas nixos-rebuild switch --flake ./#nonya
|
||||
|
||||
ai:
|
||||
doas nixos-rebuild switch --flake ./#ai
|
||||
clean:
|
||||
nix-collect-garbage --delete-older-than 90d
|
||||
doas nix-collect-garbage --delete-older-than 90d
|
||||
|
||||
installer-iso:
|
||||
nix shell nixpkgs#nixos-generators --command nixos-generate -f install-iso --flake ./#installer-iso
|
||||
|
||||
vps:
|
||||
nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1
|
||||
nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1
|
||||
|
@ -16,10 +16,10 @@ let
|
||||
in
|
||||
{
|
||||
flake.nixosConfigurations = {
|
||||
nixos = novaConfig [ mods.ivand ];
|
||||
music = novaConfig (with mods; [ music ivand ]);
|
||||
nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]);
|
||||
ai = novaConfig (with mods; [ ai ivand ]);
|
||||
nova = novaConfig [ mods.ivand ];
|
||||
nova-music = novaConfig (with mods; [ music ivand ]);
|
||||
nova-nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]);
|
||||
nova-ai = novaConfig (with mods; [ ai ivand ]);
|
||||
installer-iso = configWithModules { modules = (with mods; [ grub base shell wireless ]); };
|
||||
vps = configWithModules { modules = (with mods; [ base shell security vps ]); };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user