Update primary inputs

This commit is contained in:
Sridhar Ratnakumar 2022-09-23 11:56:57 -04:00
parent cd72d51003
commit 688a4ef1cc
2 changed files with 19 additions and 13 deletions

View file

@ -16,7 +16,13 @@ macos-system:
sudo ls # cache sudo
$$(nix build --extra-experimental-features "flakes nix-command" .#darwinConfigurations.$(HOSTNAME).system --no-link --json | nix --extra-experimental-features "flakes nix-command" run ${WITHEXP} nixpkgs#jq -- -r '.[].outputs.out')/sw/bin/darwin-rebuild switch --flake .
# Update the primary inputs
#
# Typically run as: `make update all`
update:
nix flake lock --update-input nixpkgs --update-input darwin --update-input home-manager
# Delete all but the last few NixOS generations
freeupboot:
# Delete all but the last few generations
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +2
sudo nixos-rebuild boot

24
flake.lock generated
View file

@ -46,11 +46,11 @@
]
},
"locked": {
"lastModified": 1662478528,
"narHash": "sha256-Myjd0HPL5lXri3NXOcJ6gP7IKod2eMweQBKM4uxgEGw=",
"lastModified": 1663677921,
"narHash": "sha256-NfQnUfRrjv8DXeugdbQC5El+MMhShP42ohc8iM+UAdM=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "3b69bf3cc26ae19de847bfe54d6ab22d7381a90a",
"rev": "088c98a584a38b5f844bb9e9cd32eb28479ca6d7",
"type": "github"
},
"original": {
@ -188,11 +188,11 @@
"utils": "utils_2"
},
"locked": {
"lastModified": 1662472236,
"narHash": "sha256-epA5KzVUxw9ZV+st2aU4oFfJGyIcYleTpX28wsCQQP4=",
"lastModified": 1663835995,
"narHash": "sha256-XNHQ+mdHbjNR1Oit00SFAEcrAZoCS08E7uAFcVMtwhM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "de94878b6b83f7f2cfda9cdff005417a6d7ac82c",
"rev": "bd83eab6220226085c82e637931a7ae3863d9893",
"type": "github"
},
"original": {
@ -400,11 +400,11 @@
},
"nixpkgs_5": {
"locked": {
"lastModified": 1662019588,
"narHash": "sha256-oPEjHKGGVbBXqwwL+UjsveJzghWiWV0n9ogo1X6l4cw=",
"lastModified": 1663761423,
"narHash": "sha256-bDLXl2BVq7eIQz/8CduZI1SLyhG9u/CrckHd6f7bwPE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2da64a81275b68fdad38af669afeda43d401e94b",
"rev": "d6490a0bd9dfb298fcd8382d3363b86870dc7340",
"type": "github"
},
"original": {
@ -470,11 +470,11 @@
},
"utils_2": {
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {