mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:29:30 +08:00
flake: update btop
This commit is contained in:
19
modules/packages/btop.nix
Normal file
19
modules/packages/btop.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
options.nixos.packages.btop = lib.mkOption { type = lib.types.nullOr (lib.types.submodule {}); default = {}; };
|
||||
config = let inherit (config.nixos.packages) btop; in lib.mkIf (btop != null)
|
||||
{
|
||||
nixos =
|
||||
{
|
||||
packages.packages._packages = [ pkgs.btop ];
|
||||
user.sharedModules =
|
||||
[{
|
||||
config.programs.btop =
|
||||
{
|
||||
enable = true;
|
||||
settings.btrfs_group_subvolumes = true;
|
||||
};
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -14,7 +14,7 @@ inputs:
|
||||
# lsxx
|
||||
pciutils usbutils lshw util-linux lsof dmidecode lm_sensors hwloc acpica-tools ethtool
|
||||
# top
|
||||
iotop iftop htop btop powertop s-tui
|
||||
iotop iftop htop powertop s-tui
|
||||
# editor
|
||||
nano bat
|
||||
# downloader
|
||||
|
||||
Reference in New Issue
Block a user