Compare commits
1 Commits
updated-in
...
updated-in
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e9dfde7106 |
@@ -6,7 +6,6 @@
|
|||||||
# My system is fucked
|
# My system is fucked
|
||||||
gptfdisk
|
gptfdisk
|
||||||
parted
|
parted
|
||||||
grow-last-partition-and-filesystem
|
|
||||||
|
|
||||||
# Normal usage
|
# Normal usage
|
||||||
htop
|
htop
|
||||||
|
6
flake.lock
generated
6
flake.lock
generated
@@ -646,11 +646,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756787288,
|
"lastModified": 1756386758,
|
||||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
"narHash": "sha256-1wxxznpW2CKvI9VdniaUnTT2Os6rdRJcRUf65ZK9OtE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
"rev": "dfb2f12e899db4876308eba6d93455ab7da304cd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@@ -40,7 +40,7 @@ if [[ -z $NO_CONFIRM ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Download ${STORE_PATH}"
|
echo "Download ${STORE_PATH}"
|
||||||
nix copy --to daemon "${STORE_PATH}"
|
nix copy --from "https://nix-cache.clerie.de" "${STORE_PATH}"
|
||||||
|
|
||||||
echo "Add to system profile"
|
echo "Add to system profile"
|
||||||
nix-env -p "/nix/var/nix/profiles/system" --set "${STORE_PATH}"
|
nix-env -p "/nix/var/nix/profiles/system" --set "${STORE_PATH}"
|
||||||
|
@@ -1,16 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
curl -w "Request to %{url}
|
|
||||||
|
|
||||||
time_namelookup: %{time_namelookup}s
|
|
||||||
time_connect: %{time_connect}s
|
|
||||||
time_appconnect: %{time_appconnect}s
|
|
||||||
time_pretransfer: %{time_pretransfer}s
|
|
||||||
time_starttransfer: %{time_starttransfer}s
|
|
||||||
time_posttransfer: %{time_posttransfer}s
|
|
||||||
time_queue: %{time_queue}s
|
|
||||||
time_redirect: %{time_redirect}s
|
|
||||||
time_starttransfer: %{time_starttransfer}s
|
|
||||||
|
|
||||||
time_total: %{time_total}s
|
|
||||||
" -o /dev/null -s "$@"
|
|
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
curl,
|
|
||||||
writeShellApplication,
|
|
||||||
}:
|
|
||||||
|
|
||||||
writeShellApplication {
|
|
||||||
name = "curl-timings";
|
|
||||||
text = builtins.readFile ./curl-timings.sh;
|
|
||||||
runtimeInputs = [
|
|
||||||
curl
|
|
||||||
];
|
|
||||||
}
|
|
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
e2fsprogs,
|
|
||||||
jq,
|
|
||||||
parted,
|
|
||||||
writeShellApplication,
|
|
||||||
}:
|
|
||||||
|
|
||||||
writeShellApplication {
|
|
||||||
name = "grow-last-partition-and-filesystem";
|
|
||||||
text = builtins.readFile ./grow-last-partition-and-filesystem.sh;
|
|
||||||
runtimeInputs = [
|
|
||||||
e2fsprogs
|
|
||||||
jq
|
|
||||||
parted
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
|
||||||
echo "Pass device to grow as first argument:"
|
|
||||||
echo "grow-last-partition-and-filesystem DEVICE"
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
DEVICE="$1"
|
|
||||||
|
|
||||||
PARTITIONDATA="$(parted --script --json --fix "${DEVICE}" print)"
|
|
||||||
PARTNUMBER="$(echo "${PARTITIONDATA}" | jq -r '.disk.partitions | last | .number')"
|
|
||||||
PARTNAME="$(echo "${PARTITIONDATA}" | jq -r '.disk.partitions | last | .name')"
|
|
||||||
|
|
||||||
echo "Growing partition ${DEVICE}${PARTNUMBER} (${PARTNAME})"
|
|
||||||
echo
|
|
||||||
|
|
||||||
parted "${DEVICE}" resizepart "${PARTNUMBER}" 100%
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "Resizing filesystem"
|
|
||||||
echo
|
|
||||||
|
|
||||||
resize2fs "${DEVICE}${PARTNUMBER}"
|
|
||||||
|
|
||||||
echo "Done."
|
|
@@ -12,7 +12,6 @@ final: prev: {
|
|||||||
clerie-sops-edit = final.callPackage ./clerie-sops/clerie-sops-edit.nix {};
|
clerie-sops-edit = final.callPackage ./clerie-sops/clerie-sops-edit.nix {};
|
||||||
clerie-update-nixfiles = final.callPackage ./clerie-update-nixfiles/clerie-update-nixfiles.nix {};
|
clerie-update-nixfiles = final.callPackage ./clerie-update-nixfiles/clerie-update-nixfiles.nix {};
|
||||||
chromium-incognito = final.callPackage ./chromium-incognito {};
|
chromium-incognito = final.callPackage ./chromium-incognito {};
|
||||||
curl-timings = final.callPackage ./curl-timings {};
|
|
||||||
factorio-launcher = final.callPackage ./factorio-launcher {};
|
factorio-launcher = final.callPackage ./factorio-launcher {};
|
||||||
feeds-dir = final.callPackage ./feeds-dir {};
|
feeds-dir = final.callPackage ./feeds-dir {};
|
||||||
generate-blocked-prefixes = final.callPackage ./generate-blocked-prefixes {};
|
generate-blocked-prefixes = final.callPackage ./generate-blocked-prefixes {};
|
||||||
@@ -20,7 +19,6 @@ final: prev: {
|
|||||||
git-diff-word = final.callPackage ./git-diff-word {};
|
git-diff-word = final.callPackage ./git-diff-word {};
|
||||||
git-pp = final.callPackage ./git-pp {};
|
git-pp = final.callPackage ./git-pp {};
|
||||||
git-show-link = final.callPackage ./git-show-link {};
|
git-show-link = final.callPackage ./git-show-link {};
|
||||||
grow-last-partition-and-filesystem = final.callPackage ./grow-last-partition-and-filesystem {};
|
|
||||||
nix-remove-result-links = final.callPackage ./nix-remove-result-links {};
|
nix-remove-result-links = final.callPackage ./nix-remove-result-links {};
|
||||||
nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {};
|
nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {};
|
||||||
nixfiles-generate-config = final.callPackage ./nixfiles/nixfiles-generate-config.nix {};
|
nixfiles-generate-config = final.callPackage ./nixfiles/nixfiles-generate-config.nix {};
|
||||||
|
Reference in New Issue
Block a user