mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
Makefile: update update process
This commit is contained in:
parent
977d5b8a15
commit
0001047718
14
Makefile
14
Makefile
@ -13,6 +13,18 @@ switch:
|
|||||||
test:
|
test:
|
||||||
nixos-rebuild --flake ".#${HOST}" dry-activate
|
nixos-rebuild --flake ".#${HOST}" dry-activate
|
||||||
|
|
||||||
|
# The overridden inputs are just the inputs I typically use with my own
|
||||||
|
# fork so we'll have to create a way to seamlessly upgrade those specific
|
||||||
|
# inputs. Fortunately for us, this is possible with Nix command line
|
||||||
|
# interface.
|
||||||
|
#
|
||||||
|
# Because of the nature to use my own fork, when to update is an important
|
||||||
|
# thing to consider.
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update:
|
update:
|
||||||
nix flake update --commit-lock-file --commit-lockfile-summary "flake.lock: update inputs"
|
git checkout -- flake.lock
|
||||||
|
nix flake update \
|
||||||
|
--override-input nixpkgs github:NixOS/nixpkgs/nixos-unstable \
|
||||||
|
--override-input guix-overlay github:foo-dogsquared/nix-overlay-guix \
|
||||||
|
--override-input home-manager github:nix-community/home-manager \
|
||||||
|
--commit-lock-file --commit-lockfile-summary "flake.lock: update inputs"
|
||||||
|
Loading…
Reference in New Issue
Block a user