Compare commits
4 Commits
91ff16f698
...
e9a9e9d8a8
| Author | SHA1 | Date | |
|---|---|---|---|
|
e9a9e9d8a8
|
|||
|
cae94a40f2
|
|||
|
125c8a685e
|
|||
|
01a6ebcba6
|
@@ -174,49 +174,14 @@
|
|||||||
|
|
||||||
lsof
|
lsof
|
||||||
|
|
||||||
(pkgs.writeShellApplication {
|
reflac
|
||||||
name = "disk-smart-test";
|
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
gnugrep
|
|
||||||
coreutils
|
|
||||||
smartmontools
|
|
||||||
];
|
|
||||||
|
|
||||||
# i gotta fix that
|
|
||||||
excludeShellChecks = [ "SC2010" ];
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
|
||||||
echo "This command requires root."
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
DISKS=$(ls /dev/sd* | grep -v "[0-9]$")
|
|
||||||
for i in $DISKS; do
|
|
||||||
echo -n "$i "
|
|
||||||
smartctl -a "$i" | grep "SMART overall-health self-assessment test result:" | cut -d' ' -f6
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
|
|
||||||
(pkgs.writeShellApplication {
|
|
||||||
name = "reflac";
|
|
||||||
runtimeInputs = with pkgs; [ flac ];
|
|
||||||
excludeShellChecks = [ "2086" ];
|
|
||||||
|
|
||||||
text = builtins.readFile (
|
|
||||||
pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/chungy/reflac/refs/heads/master/reflac";
|
|
||||||
sha256 = "61c6cc8be3d276c6714e68b55e5de0e6491f50bbf195233073dbce14a1e278a7";
|
|
||||||
}
|
|
||||||
);
|
|
||||||
})
|
|
||||||
|
|
||||||
pfetch-rs
|
pfetch-rs
|
||||||
|
|
||||||
sbctl
|
sbctl
|
||||||
|
|
||||||
|
# add `skdump`
|
||||||
|
libatasmart
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.no-rgb =
|
systemd.services.no-rgb =
|
||||||
|
|||||||
13
overlays.nix
13
overlays.nix
@@ -30,4 +30,17 @@ final: prev: {
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
reflac = prev.writeShellApplication {
|
||||||
|
name = "reflac";
|
||||||
|
runtimeInputs = with prev; [ flac ];
|
||||||
|
excludeShellChecks = [ "2086" ];
|
||||||
|
|
||||||
|
text = builtins.readFile (
|
||||||
|
prev.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/chungy/reflac/refs/heads/master/reflac";
|
||||||
|
sha256 = "61c6cc8be3d276c6714e68b55e5de0e6491f50bbf195233073dbce14a1e278a7";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user