about summary refs log tree commit diff
path: root/flake/devshell.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-14 13:19:34 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-14 17:44:02 -0800
commit7ccc041397dc7bc25bcbcf37a4133d0da9d9a5ab (patch)
tree7854491fae18e46463a2634fe5fa762632b6a582 /flake/devshell.nix
parentbuild(deps): bump actions/checkout from 3 to 4 (diff)
downloadworld-7ccc041397dc7bc25bcbcf37a4133d0da9d9a5ab.tar.gz
use devshell to build / switch the configuration
Diffstat (limited to 'flake/devshell.nix')
-rw-r--r--flake/devshell.nix18
1 files changed, 18 insertions, 0 deletions
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 .#";
+          }
         ];
       };