Compare commits
3 Commits
updated-in
...
6954e75a5c
| Author | SHA1 | Date | |
|---|---|---|---|
| 6954e75a5c | |||
| 539502cea0 | |||
| 00a7eee2af |
8
flake.lock
generated
8
flake.lock
generated
@@ -411,11 +411,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1757364612,
|
||||
"narHash": "sha256-6MSqlWHH15qbWbvS9b6OTGdtIkW6GVb9SSLkEYAMdDw=",
|
||||
"lastModified": 1757627777,
|
||||
"narHash": "sha256-NGUqHQ+/BaUhjgSYQauTihTtNyhhnQRMJ8t7ZSPNpmk=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "cb758d9bc97baa11e80a048e666c99986cabed43",
|
||||
"revCount": 6,
|
||||
"rev": "b7b0f0d5191433bca1377f7d818b800627a83fda",
|
||||
"revCount": 9,
|
||||
"type": "git",
|
||||
"url": "https://git.clerie.de/clerie/mu5001tool.git"
|
||||
},
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
LoadCredential = "zte-hypermobile-5g-password:${config.sops.secrets."zte-hypermobile-5g-password".path}";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "15s";
|
||||
};
|
||||
script = ''
|
||||
${lib.getExe pkgs.mu5001tool} --password-file ''${CREDENTIALS_DIRECTORY}/zte-hypermobile-5g-password prometheus-exporter --listen-port 9242
|
||||
|
||||
@@ -10,6 +10,7 @@ writeShellApplication {
|
||||
text = builtins.readFile ./grow-last-partition-and-filesystem.sh;
|
||||
runtimeInputs = [
|
||||
e2fsprogs
|
||||
gptfdisk
|
||||
jq
|
||||
parted
|
||||
];
|
||||
|
||||
@@ -11,6 +11,9 @@ fi
|
||||
|
||||
DEVICE="$1"
|
||||
|
||||
echo "Move GTP backup header to end of disk"
|
||||
sgdisk "${DEVICE}" --move-second-header
|
||||
|
||||
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')"
|
||||
|
||||
Reference in New Issue
Block a user