From ea6feacaf223da9760017f5b84b5f284c3a86370 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 5 Jun 2026 12:10:27 +0900 Subject: [PATCH] flake.nix: have `nixos-hardware` follow `nixpkgs` --- flake.lock | 37 +++++++++++++------------------------ flake.nix | 5 ++++- 2 files changed, 17 insertions(+), 25 deletions(-) diff --git a/flake.lock b/flake.lock index 246f449..32ca592 100644 --- a/flake.lock +++ b/flake.lock @@ -142,7 +142,9 @@ }, "nixos-hardware": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1780065812, @@ -161,15 +163,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1767892417, - "narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=", - "rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba", - "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz" + "lastModified": 1780453794, + "narHash": "sha256-bXMRa9VTsHSPXL4Cw8R6JJLQeY3Y/IP4+YJCYVmQ7FY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6b316287bae2ee04c9b93c8c858d930fd07d7338", + "type": "github" }, "original": { - "type": "tarball", - "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" + "id": "nixpkgs", + "ref": "nixos-26.05", + "type": "indirect" } }, "nixpkgs-unstable": { @@ -203,21 +207,6 @@ "type": "github" } }, - "nixpkgs_2": { - "locked": { - "lastModified": 1780453794, - "narHash": "sha256-bXMRa9VTsHSPXL4Cw8R6JJLQeY3Y/IP4+YJCYVmQ7FY=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "6b316287bae2ee04c9b93c8c858d930fd07d7338", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "ref": "nixos-26.05", - "type": "indirect" - } - }, "root": { "inputs": { "disko": "disko", @@ -226,7 +215,7 @@ "maunium-stickerpicker": "maunium-stickerpicker", "minecraft": "minecraft", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-yet-unstabler": "nixpkgs-yet-unstabler", "sops-nix": "sops-nix" diff --git a/flake.nix b/flake.nix index 29a0b80..68b7120 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + nixos-hardware = { + url = "github:NixOS/nixos-hardware/master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; sops-nix = { url = "github:Mic92/sops-nix";