diff --git a/README.md b/README.md index bb9b87d..4429817 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,12 @@ This repository holds my NixOS configuration. It is fully reproducible, flakes based, and position-independent, meaning there is no moving around of `configuration.nix`. -Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage). -Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix). -For formatting [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) is used. -For image generation [nixos-generators](https://github.com/nix-community/nixos-generators) is used. +used flakes: +- image generation: [nixos-generators](https://github.com/nix-community/nixos-generators) +- disk formatting: [disko](https://github.com/nix-community/disko) +- secrets: [sops-nix](https://github.com/Mic92/sops-nix) +- deployment: [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage) +- formatting: [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) ## structure diff --git a/flake.lock b/flake.lock index 7845232..93dc055 100644 --- a/flake.lock +++ b/flake.lock @@ -20,6 +20,26 @@ "type": "github" } }, + "disko": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1678912468, + "narHash": "sha256-oUo6ZrsuqymuMLLvGfgnQ464OMKnUONv+ryea07iGrE=", + "owner": "nix-community", + "repo": "disko", + "rev": "e8650fc36bf9d2acb411ba0047f863b8e481e3bb", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "disko", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -457,6 +477,7 @@ "root": { "inputs": { "deploy-rs": "deploy-rs", + "disko": "disko", "flake-parts": "flake-parts", "nix": "nix", "nixos-generators": "nixos-generators", diff --git a/flake.nix b/flake.nix index 0aa040b..acf3bc0 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + disko = { + url = "github:nix-community/disko"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + # own flakes stunkymonkey = { url = "github:Stunkymonkey/stunkymonkey.de"; @@ -65,6 +70,7 @@ nativeBuildInputs = [ inputs'.sops-nix.packages.sops-import-keys-hook inputs'.deploy-rs.packages.deploy-rs + inputs'.disko.packages.disko # formatters pkgs.shellcheck pkgs.nixpkgs-fmt