Skip to content

Commit

Permalink
nixos-needsreboot: add
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Apr 5, 2024
1 parent 766a3ac commit 4f78ebf
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions modules/base-tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
programs.mtr.enable = true;

environment.systemPackages = with pkgs; [
nixos-needsreboot # for updating
htop
curl
dstat
Expand Down
26 changes: 26 additions & 0 deletions pkgs/nixos-needsreboot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:

rustPlatform.buildRustPackage rec {
pname = "nixos-needsreboot";
version = "unstable-2024-03-06";

src = fetchFromGitHub {
owner = "srounce";
repo = "nixos-needsreboot";
rev = "9089c7343fc6fe4bb2f899e85686a77e64b33cd6";
hash = "sha256-ACaUD16GQQeDYb5JXBE56JjV7bidztPFsZpaSLrFP/U=";
};

cargoHash = "sha256-A2xAjyQlvsuSiHAlFkVeVNpIshLbiKfwqX5TGCuyGRc=";

meta = with lib; {
description = "Determine if you need to reboot your NixOS machine";
homepage = "https://github.com/srounce/nixos-needsreboot";
license = licenses.free; # FIXME: nix-init did not found a license
maintainers = with maintainers; [ mkg20001 ];
mainProgram = "nixos-needsreboot";
};
}

0 comments on commit 4f78ebf

Please sign in to comment.