flake: pin nixpkgs for darwin01
also pin darwin03
This commit is contained in:
parent
dc6490e416
commit
beeb501372
2 changed files with 23 additions and 2 deletions
17
flake.lock
generated
17
flake.lock
generated
|
@ -102,6 +102,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-darwin-pinned": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710339354,
|
||||||
|
"narHash": "sha256-+P5ccUPiLouHexb8aJrUOVOIja9qm+fG57pgAu7uIRs=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2dbc8f62d8af7a1ab962e4b20d12b25ddcb86ced",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2dbc8f62d8af7a1ab962e4b20d12b25ddcb86ced",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-update": {
|
"nixpkgs-update": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"mmdoc": [],
|
"mmdoc": [],
|
||||||
|
@ -183,6 +199,7 @@
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-darwin-pinned": "nixpkgs-darwin-pinned",
|
||||||
"nixpkgs-update": "nixpkgs-update",
|
"nixpkgs-update": "nixpkgs-update",
|
||||||
"nixpkgs-update-github-releases": "nixpkgs-update-github-releases",
|
"nixpkgs-update-github-releases": "nixpkgs-update-github-releases",
|
||||||
"nur-update": "nur-update",
|
"nur-update": "nur-update",
|
||||||
|
|
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||||
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
nixpkgs-darwin-pinned.url = "github:NixOS/nixpkgs/2dbc8f62d8af7a1ab962e4b20d12b25ddcb86ced";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { flake-parts, self, ... }:
|
outputs = inputs @ { flake-parts, self, ... }:
|
||||||
|
@ -98,7 +100,8 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
darwin01 = darwinSystem {
|
darwin01 = darwinSystem {
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.aarch64-darwin;
|
# https://github.com/nix-community/infra/issues/1155
|
||||||
|
pkgs = inputs.nixpkgs-darwin-pinned.legacyPackages.aarch64-darwin;
|
||||||
modules = [ ./hosts/darwin01/configuration.nix ];
|
modules = [ ./hosts/darwin01/configuration.nix ];
|
||||||
};
|
};
|
||||||
darwin02 = darwinSystem {
|
darwin02 = darwinSystem {
|
||||||
|
@ -106,7 +109,8 @@
|
||||||
modules = [ ./hosts/darwin02/configuration.nix ];
|
modules = [ ./hosts/darwin02/configuration.nix ];
|
||||||
};
|
};
|
||||||
darwin03 = darwinSystem {
|
darwin03 = darwinSystem {
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.aarch64-darwin;
|
# use the same nixpkgs as darwin01
|
||||||
|
pkgs = inputs.nixpkgs-darwin-pinned.legacyPackages.aarch64-darwin;
|
||||||
modules = [ ./hosts/darwin03/configuration.nix ];
|
modules = [ ./hosts/darwin03/configuration.nix ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue