From 6c7939e7dad5c1e75dadfd0003dae3588186a084 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 30 Jun 2023 12:55:40 +0800 Subject: [PATCH] config: include disko as part of the flake This could be used for bootstrapping with nixos-anywhere tool apparently. --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ 2 files changed, 26 insertions(+) diff --git a/flake.lock b/flake.lock index 75b5d2c9..aea5a22e 100644 --- a/flake.lock +++ b/flake.lock @@ -76,6 +76,26 @@ "type": "github" } }, + "disko": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1687968164, + "narHash": "sha256-L9jr2zCB6NIaBE3towusjGBigsnE2pMID8wBGkYbTS4=", + "owner": "nix-community", + "repo": "disko", + "rev": "8002e7cb899bc2a02a2ebfb7f999fcd7c18b92a1", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "disko", + "type": "github" + } + }, "dream2nix": { "inputs": { "all-cabal-json": [ @@ -956,6 +976,7 @@ "inputs": { "deploy": "deploy", "devshell": "devshell", + "disko": "disko", "emacs-overlay": "emacs-overlay", "flake-utils": "flake-utils_2", "guix-overlay": "guix-overlay", diff --git a/flake.nix b/flake.nix index f494f6b1..9542bc62 100644 --- a/flake.nix +++ b/flake.nix @@ -66,6 +66,10 @@ # Generating an entire flavored themes with Nix? nix-colors.url = "github:misterio77/nix-colors"; + # Removing the manual partitioning part with a little boogie. + disko.url = "github:nix-community/disko"; + disko.inputs.nixpkgs.follows = "nixpkgs"; + # Deploying stuff with Nix. This is becoming a monorepo for everything I # need and I'm liking it. deploy.url = "github:serokell/deploy-rs"; @@ -143,6 +147,7 @@ inputs.nur.nixosModules.nur inputs.sops-nix.nixosModules.sops inputs.guix-overlay.nixosModules.guix + inputs.disko.nixosModules.disko ]; # BOOOOOOOOOOOOO! Somebody give me a tomato!