diff --git a/README.md b/README.md index f411e07..eb96722 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,3 @@ # ❄️ puter This is my NixOS configuration. There are many like it, but this one is mine. Copy at your own risk. - -## Partitioning - -```bash -curl -O https://raw.githubusercontent.com/lukaswrz/puter/main/part -chmod +x part -./part /path/to/device -``` diff --git a/part b/disk old mode 100755 new mode 100644 similarity index 93% rename from part rename to disk index 57c3d5b..f9e37a8 --- a/part +++ b/disk @@ -1,8 +1,3 @@ -#!/usr/bin/env nix -#! nix shell nixpkgs#bash nixpkgs#coreutils nixpkgs#findutils nixpkgs#util-linux nixpkgs#jq nixpkgs#btrfs-progs nixpkgs#dosfstools --command bash - -# shellcheck shell=bash - set -o errexit set -o nounset set -o pipefail diff --git a/flake.nix b/flake.nix index 7a0cd39..4738a0b 100644 --- a/flake.nix +++ b/flake.nix @@ -55,6 +55,19 @@ }; formatter = pkgs.alejandra; + + packages.disk = pkgs.writeShellApplication { + name = "disk"; + + runtimeInputs = with pkgs; [ + util-linux + jq + btrfs-progs + dosfstools + ]; + + text = builtins.readFile ./disk; + }; }; }; }