From 73bd2e0bdaba987e2ebee676a369279df5da1fec Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 24 Feb 2024 10:21:53 +0000 Subject: [PATCH] Add just and justfile --- flake.nix | 4 ++++ justfile | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 justfile diff --git a/flake.nix b/flake.nix index c7e7ed7..d413b48 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,10 @@ self', ... }: { + packages.default = pkgs.mkShell { + nativeBuildInputs = [pkgs.just]; + }; + formatter = pkgs.alejandra; }; diff --git a/justfile b/justfile new file mode 100644 index 0000000..7ab1947 --- /dev/null +++ b/justfile @@ -0,0 +1,14 @@ +_default: + just --list + +check: + nix flake check + +nixos-build profile: + sudo nixos-rebuild build --flake ".#{{ profile }}" + +nixos-switch profile: + sudo nixos-rebuild switch --flake ".#{{ profile }}" + +update: + nix flake update