From 9e1f14a10bfce9b896f44d23ffc4da5b333760a2 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 26 Oct 2022 17:24:37 +0800 Subject: [PATCH] Makefile: separate update processes into using my own forks --- Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index cec23e66..cdfe2e43 100644 --- a/Makefile +++ b/Makefile @@ -13,18 +13,14 @@ switch: test: 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 update: 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" + +.PHONY: update_with_forked_inputs +update_with_forked_inputs: + nix flake lock \ + --override-input guix-overlay git+file:///home/foo-dogsquared/library/projects/software/nix-overlay-guix/ \ + --override-input dotfiles git+file:///home/foo-dogsquared/library/dotfiles/