nix: use 22.11 stable nixpkgs #13

Merged
pleshevskiy merged 16 commits from stable-nix into main 2023-03-31 17:40:22 +03:00
2 changed files with 11 additions and 5 deletions
Showing only changes of commit 6ed972043e - Show all commits

View file

@ -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))))

View file

@ -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);