package disk

This commit is contained in:
Lukas Wurzinger 2024-04-21 19:55:29 +02:00
parent 3f046a41c4
commit 6ad1a9a145
3 changed files with 13 additions and 13 deletions

View file

@ -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
```

5
part → disk Executable file → Normal file
View file

@ -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

View file

@ -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;
};
};
};
}