From 35c3cebfd98dd16853a322d135a3fc915b1f22ed Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Wed, 17 Mar 2021 08:06:26 -0400 Subject: [PATCH] Update flake.lock and README --- README.md | 12 ++++++++---- flake.lock | 12 ++++++------ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f995e9b..17e545c 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,14 @@ $ sudo ./nixos-rebuild.sh switch ## Update -`nix flake update` does not update the [flake.lock](./flake.lock). There is an open issue [here](https://github.com/NixOS/nix/issues/3781). - -To update `flake.lock`, run: +To update nixpkgs defined in [flake.nix](./flake.nix), run: ```console -$ nix flake update --recreate-lock-file +$ nix flake update ``` + +If there are updates, they should be reflected in [flake.lock](./flake.lock). + +## Pre-commit hooks + +Pre-commit hooks are automatically activated when [direnv](https://github.com/direnv/direnv) is installed. diff --git a/flake.lock b/flake.lock index 716f69b..cabfe68 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1615419569, - "narHash": "sha256-+ewB0sQGeoYryWZk2Ww2Lm/5jeqhlYTjGy6zEX2Mm1I=", + "lastModified": 1615943941, + "narHash": "sha256-ocj+ngGSJ0SRHjp3UDH76TQA8XXUxemAQDDJp32k5Rw=", "owner": "nix-community", "repo": "home-manager", - "rev": "040ea28e448a93d24540b7cf2eda4b25300c5ab1", + "rev": "920ea74afee92d321a4ff7dc714b165daaad78ec", "type": "github" }, "original": { @@ -38,11 +38,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1615532953, - "narHash": "sha256-SWpaGjrp/INzorEqMz3HLi6Uuk9I0KAn4YS8B4n3q5g=", + "lastModified": 1615797423, + "narHash": "sha256-5NGDZXPQzuoxf/42NiyC9YwwhwzfMfIRrz3aT0XHzSc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "916ee862e87ac5ee2439f2fb7856386b4dc906ae", + "rev": "266dc8c3d052f549826ba246d06787a219533b8f", "type": "github" }, "original": {