From 7ccc041397dc7bc25bcbcf37a4133d0da9d9a5ab Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 14 Dec 2023 13:19:34 -0800 Subject: use devshell to build / switch the configuration --- flake/devshell.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'flake') diff --git a/flake/devshell.nix b/flake/devshell.nix index 6e1d40e..8124ed4 100644 --- a/flake/devshell.nix +++ b/flake/devshell.nix @@ -24,6 +24,24 @@ commands = [ { package = config.treefmt.build.wrapper; } + { + name = "update"; + help = "Update + Commit the Lock File"; + command = "nix flake update --commit-lock-file"; + category = "nix"; + } + { + name = "build-darwin"; + category = "darwin"; + help = "Build the current darwin configuration"; + command = "darwin-rebuild build --flake .#"; + } + { + name = "switch-darwin"; + category = "darwin"; + help = "Switch to the current darwin configuration"; + command = "darwin-rebuild switch --flake .#"; + } ]; }; -- cgit v1.2.3