From 49222c448780180715f81c3d0a339cb52cabe3ca Mon Sep 17 00:00:00 2001 From: vkcku Date: Mon, 1 Jun 2026 11:55:41 +0530 Subject: infra: add disko to default imports monorepo-revid: 73d3369eb715d459a2c5279ad469260da6166d93 --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ infra/hosts/hosts.nix | 3 +++ 3 files changed, 29 insertions(+) diff --git a/flake.lock b/flake.lock index 6de15f0..7a94029 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,25 @@ { "nodes": { + "disko": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1780290312, + "narHash": "sha256-eTAlX0CwgB84Ts3GaBd944A3DRXVMzgA0EqroZBISUo=", + "owner": "nix-community", + "repo": "disko", + "rev": "115e5211780054d8a890b41f0b7734cafad54dfe", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "disko", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" @@ -66,6 +86,7 @@ }, "root": { "inputs": { + "disko": "disko", "flake-parts": "flake-parts", "import-tree": "import-tree", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index 99e9192..b55a537 100644 --- a/flake.nix +++ b/flake.nix @@ -5,6 +5,11 @@ nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; # keep-sorted start block=yes newline_separated=yes + disko = { + url = "github:nix-community/disko"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + flake-parts.url = "github:hercules-ci/flake-parts"; import-tree.url = "github:denful/import-tree"; diff --git a/infra/hosts/hosts.nix b/infra/hosts/hosts.nix index 9e7c69f..cdf26eb 100644 --- a/infra/hosts/hosts.nix +++ b/infra/hosts/hosts.nix @@ -15,7 +15,10 @@ name = host; value = inputs.nixpkgs.lib.nixosSystem { modules = [ + # keep-sorted start config.flake.modules.nixos."${host}" + inputs.disko.nixosModules.default + # keep-sorted end ]; }; }; -- cgit v1.3.1