aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvkcku <[email protected]>2026-06-01 11:55:41 +0530
committervkcku <[email protected]>2026-06-01 11:55:41 +0530
commit49222c448780180715f81c3d0a339cb52cabe3ca (patch)
treeef7d6099f91ff3b66cf3be9a3123a70cf2ee809f
parentinfra: autoregister nixos configurations for hosts (diff)
infra: add disko to default imports
monorepo-revid: 73d3369eb715d459a2c5279ad469260da6166d93
-rw-r--r--flake.lock21
-rw-r--r--flake.nix5
-rw-r--r--infra/hosts/hosts.nix3
3 files changed, 29 insertions, 0 deletions
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
];
};
};