make it easier to avoid downgrading servers during deployment
Alan Pearce alan@alanpearce.eu
Wed, 15 May 2024 10:04:11 +0200
4 files changed, 26 insertions(+), 9 deletions(-)
M flake.lock → flake.lock
@@ -315,6 +315,22 @@ "repo": "nixpkgs", "type": "github" } }, + "nixpkgs-small": { + "locked": { + "lastModified": 1715724059, + "narHash": "sha256-SxGSovGOHR+5XUZN/U7J5vMwrNjhhy4vWg22+gX47VY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "342e8db923162ef6783dd3c8181b8d346857280c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-stable": { "locked": { "lastModified": 1715218190, @@ -430,6 +446,7 @@ "home-manager": "home-manager_2", "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_2", + "nixpkgs-small": "nixpkgs-small", "searchix": "searchix", "secrets": "secrets", "utils": "utils_2"
M flake.nix → flake.nix
@@ -1,6 +1,7 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs-small.url = "github:NixOS/nixpkgs/nixos-unstable-small"; nixos-hardware.url = "github:NixOS/nixos-hardware"; nix-index-database.url = "github:Mic92/nix-index-database"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; @@ -25,6 +26,7 @@ inputs@ { self , utils , nixpkgs + , nixpkgs-small , nixos-hardware , home-manager , darwin @@ -74,7 +76,7 @@ common-pc common-gpu-nvidia-nonprime ]); }; - nixosConfigurations.nanopi = nixpkgs.lib.nixosSystem { + nixosConfigurations.nanopi = nixpkgs-small.lib.nixosSystem { system = utils.lib.system.aarch64-linux; specialArgs = { inherit inputs; }; modules = [ @@ -82,7 +84,7 @@ agenix.nixosModules.default ./system/nanopi.nix ]; }; - nixosConfigurations.linde = nixpkgs.lib.nixosSystem { + nixosConfigurations.linde = nixpkgs-small.lib.nixosSystem { system = utils.lib.system.aarch64-linux; specialArgs = { inherit inputs; }; modules = [
M system/linde.nix → system/linde.nix
@@ -132,10 +132,9 @@ allowReboot = true; flake = "git+file://${config.services.gitolite.dataDir}/repositories/nixfiles.git"; flags = [ "--no-write-lock-file" - "--override-input" - "nixpkgs" - "github:NixOS/nixpkgs/nixos-unstable-small" - "--override-input" + "--update-input" + "nixpkgs-small" + "--update-input" "searchix" "git+https://git.alanpearce.eu/searchix" ];
M system/nanopi.nix → system/nanopi.nix
@@ -627,9 +627,8 @@ upper = "06:00"; }; flags = [ "--no-write-lock-file" - "--override-input" - "nixpkgs" - "github:NixOS/nixpkgs/nixos-unstable-small" + "--update-input" + "nixpkgs-small" ]; };