From cfb9d086b866e7e3f8d641cc05e7a73b33309a7f Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 4 Aug 2025 16:21:29 +0200 Subject: [PATCH] yep yep, justfiles are cooooool --- justfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..c7a9326 --- /dev/null +++ b/justfile @@ -0,0 +1,17 @@ +[private] +default: + @just -l + +[doc('Update flake dependencies')] +update: + nix flake update + +[doc('install nixos on a system (uses nix-anywhere) +> profile: Which profile to use +> host: How to reach the target system in the standard format of `user@host` +')] +install profile host: + nix run nixpkgs#nixos-anywhere -- \ + --flake .#{{profile}} \ + --generate-hardware-config nixos-generate-config ./hardware-configuration.nix \ + {{host}} \ No newline at end of file