From 8b0c402f091b209ab4c53c6023f149826d0e5e93 Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Tue, 16 Apr 2024 11:13:08 +0530 Subject: [PATCH] feat(update): Use older command for updating flakes for nix-darwin --- flake.lock | 2 +- justfile | 8 +++++++- neovim/nvim.nix | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 5ddb95dc..53a66e19 100644 --- a/flake.lock +++ b/flake.lock @@ -1204,7 +1204,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-heUzzO+3EYA3BEgozgKom82zizXDrgydxpvqjGcLN9g=", + "narHash": "sha256-L54M7cDNrfMoILLy2Bc17srMWaNCQlc/46tAOyl4Qw8=", "path": "./neovim", "type": "path" }, diff --git a/justfile b/justfile index 67f7143b..f8c4277b 100644 --- a/justfile +++ b/justfile @@ -3,7 +3,7 @@ set dotenv-load # clean := `git diff-index --quiet --cached HEAD --` [macos] install: local - nix run nix-darwin -- switch --flake . + darwin-rebuild switch --flake . [linux] install: local @@ -16,9 +16,15 @@ build: home: nix --extra-experimental-features "nix-command flakes" run home-manager/master -- switch --flake . --show-trace +[linux] local: nix flake update subflakes nix flake update neovim +[macos] +local: + nix flake lock --update-input subflakes + nix flake lock --update-input neovim + nvim: nix run .#neovim diff --git a/neovim/nvim.nix b/neovim/nvim.nix index 9f343609..843fdad8 100644 --- a/neovim/nvim.nix +++ b/neovim/nvim.nix @@ -455,7 +455,7 @@ in rec { }) require('chatgpt').setup({ - api_key_cmd = "rbw get platform.openai.com", + api_key_cmd = "${pkgs.rbw}/bin/rbw get platform.openai.com", }) require('octo').setup({