nix: use 22.11 stable nixpkgs #13
2 changed files with 11 additions and 5 deletions
12
Makefile
12
Makefile
|
@ -37,13 +37,21 @@ $(1): ;
|
||||||
systemctl --user reset-failed
|
systemctl --user reset-failed
|
||||||
$$(NIX_RUN)switch/$(1)
|
$$(NIX_RUN)switch/$(1)
|
||||||
|
|
||||||
.PHONY: $(1)-test
|
.PHONY: rollback-$(1)
|
||||||
$(1)-test: ; $$(NIX_RUN)test/$(1)
|
rollback-$(1):
|
||||||
|
$$(NIX_RUN)rollback/$(1)
|
||||||
|
|
||||||
|
.PHONY: test-$(1)
|
||||||
|
test-$(1): ; $$(NIX_RUN)test/$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define vps_rule
|
define vps_rule
|
||||||
.PHONY: $(1)
|
.PHONY: $(1)
|
||||||
$(1): ; $$(NIX_RUN)deploy/$(1)
|
$(1): ; $$(NIX_RUN)deploy/$(1)
|
||||||
|
|
||||||
|
.PHONY: rollback-$(1)
|
||||||
|
rollback-$(1):
|
||||||
|
$$(NIX_RUN)rollback/$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach machine,$(MACHINES),$(eval $(call machine_rule,$(machine))))
|
$(foreach machine,$(MACHINES),$(eval $(call machine_rule,$(machine))))
|
||||||
|
|
|
@ -74,9 +74,7 @@
|
||||||
|
|
||||||
rollback = lib.recurseIntoAttrs (lib.mapAttrs
|
rollback = lib.recurseIntoAttrs (lib.mapAttrs
|
||||||
(hostname: machine: pkgs.writeShellScript "rollback-${hostname}" ''
|
(hostname: machine: pkgs.writeShellScript "rollback-${hostname}" ''
|
||||||
${nixos-rebuild}/bin/nixos-rebuild test \
|
${nixos-rebuild}/bin/nixos-rebuild switch --rollback
|
||||||
--rollback \
|
|
||||||
--flake .#${hostname}
|
|
||||||
'')
|
'')
|
||||||
self.nixosConfigurations);
|
self.nixosConfigurations);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue