From 0bf31f6699fd89493038f4f4d82ff7ac1c7748a5 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Sun, 4 Aug 2024 14:54:06 +0200 Subject: [PATCH] add just generate recipe --- Justfile | 4 ++-- nixos/configs/default.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Justfile b/Justfile index 9eadd51..36d52a6 100644 --- a/Justfile +++ b/Justfile @@ -17,8 +17,8 @@ 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 +generate format="install-iso" config="install-iso": + nix shell nixpkgs#nixos-generators --command nixos-generate -f {{format}} --flake ./#{{config}} vps: nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1 diff --git a/nixos/configs/default.nix b/nixos/configs/default.nix index 2bbd3ef..716d9e5 100644 --- a/nixos/configs/default.nix +++ b/nixos/configs/default.nix @@ -20,7 +20,7 @@ in 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 ]); }; + install-iso = configWithModules { modules = (with mods; [ grub base shell wireless ]); }; vps = configWithModules { modules = (with mods; [ base shell security vps ]); }; }; }