programs: replace coreutils uptime with procps uptime
This commit is contained in:
@@ -117,6 +117,7 @@ in
|
|||||||
"unixtools.ps"
|
"unixtools.ps"
|
||||||
"unixtools.sysctl"
|
"unixtools.sysctl"
|
||||||
"unixtools.xxd"
|
"unixtools.xxd"
|
||||||
|
"uptime"
|
||||||
"usbutils" # lsusb
|
"usbutils" # lsusb
|
||||||
"util-linux" # lsblk, lscpu, etc
|
"util-linux" # lsblk, lscpu, etc
|
||||||
"valgrind"
|
"valgrind"
|
||||||
|
@@ -207,6 +207,7 @@
|
|||||||
./tor-browser.nix
|
./tor-browser.nix
|
||||||
./tuba.nix
|
./tuba.nix
|
||||||
./unl0kr
|
./unl0kr
|
||||||
|
./uptime.nix
|
||||||
./v4l-utils.nix
|
./v4l-utils.nix
|
||||||
./via.nix
|
./via.nix
|
||||||
./video-trimmer.nix
|
./video-trimmer.nix
|
||||||
|
11
hosts/common/programs/uptime.nix
Normal file
11
hosts/common/programs/uptime.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
sane.programs.uptime = {
|
||||||
|
# `uptime` is provided by one of:
|
||||||
|
# - busybox
|
||||||
|
# - coreutils (nixos default)
|
||||||
|
# - procps
|
||||||
|
# none of them are great, but procps at least supports `uptime --since`
|
||||||
|
packageUnwrapped = pkgs.linkBinIntoOwnPackage pkgs.procps "uptime";
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user