From e3f59ee35f8f3debcddcc2c99ec5d24cfe94ad5c Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 2 Jul 2023 17:43:48 +0200 Subject: [PATCH] flake: add nixos-hypervisor input Private repository for now. --- flake.lock | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++--- flake.nix | 7 +++++- 2 files changed, 76 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 1e7db14..7e4330f 100644 --- a/flake.lock +++ b/flake.lock @@ -123,6 +123,27 @@ "type": "github" } }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": [ + "nixos-hypervisor", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1687762428, + "narHash": "sha256-DIf7mi45PKo+s8dOYF+UlXHzE0Wl/+k3tXUyAoAnoGE=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "37dd7bb15791c86d55c5121740a1887ab55ee836", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-registry": { "flake": false, "locked": { @@ -182,16 +203,16 @@ ] }, "locked": { - "lastModified": 1667907331, - "narHash": "sha256-bHkAwkYlBjkupPUFcQjimNS8gxWSWjOTevEuwdnp5m0=", + "lastModified": 1687871164, + "narHash": "sha256-bBFlPthuYX322xOlpJvkjUBz0C+MOBjZdDOOJJ+G2jU=", "owner": "rycee", "repo": "home-manager", - "rev": "6639e3a837fc5deb6f99554072789724997bc8e5", + "rev": "07c347bb50994691d7b0095f45ebd8838cf6bc38", "type": "github" }, "original": { "owner": "rycee", - "ref": "release-22.05", + "ref": "release-23.05", "repo": "home-manager", "type": "github" } @@ -211,6 +232,29 @@ "type": "github" } }, + "nixos-hypervisor": { + "inputs": { + "flake-parts": "flake-parts_2", + "nixpkgs": [ + "nixpkgs" + ], + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1688312018, + "narHash": "sha256-HU6yQuvGyA9ZPik6VQ1RaIyRfPksDCDVVnUXVfpenzo=", + "ref": "main", + "rev": "1b532cd9302454fb65027ca9a190c875195fb01c", + "revCount": 2, + "type": "git", + "url": "ssh://gitea@git.newtype.fr/newtype/nixos-hypervisor" + }, + "original": { + "ref": "main", + "type": "git", + "url": "ssh://gitea@git.newtype.fr/newtype/nixos-hypervisor" + } + }, "nixpkgs": { "locked": { "lastModified": 1685952468, @@ -267,6 +311,7 @@ "flake-registry": "flake-registry", "home-manager": "home-manager_2", "nixos-hardware": "nixos-hardware", + "nixos-hypervisor": "nixos-hypervisor", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur", @@ -308,6 +353,27 @@ "repo": "nixpkgs", "type": "github" } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "nixos-hypervisor", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1688026376, + "narHash": "sha256-qJmkr9BWDpqblk4E9/rCsAEl39y2n4Ycw6KRopvpUcY=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "df3f32b0cc253dfc7009b7317e8f0e7ccd70b1cf", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 13302ee..61ef327 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ nixos-hardware.url = "github:NixOS/nixos-hardware"; nur.url = "github:nix-community/NUR"; - home-manager.url = "github:rycee/home-manager/release-22.05"; + home-manager.url = "github:rycee/home-manager/release-23.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; agenix.url = "github:ryantm/agenix"; @@ -36,6 +36,11 @@ # actually not used when using the modules but than nothing ever will try to fetch this nixpkgs variant srvos.inputs.nixpkgs.follows = "nixpkgs"; + # Ryan's experimental hypervisor based on cloud-hypervisor + # Private repository, you need a valid SSH key to access it + nixos-hypervisor.url = "git+ssh://gitea@git.newtype.fr/newtype/nixos-hypervisor?ref=main"; + nixos-hypervisor.inputs.nixpkgs.follows = "nixpkgs"; + flake-registry.url = "github:NixOS/flake-registry"; flake-registry.flake = false; };