Files
community-plugins/nix-monitor/plugin.toml
T

184 lines
5.8 KiB
TOML

id = "avivbintangaringga/nix-monitor"
name = "Nix Monitor"
version = "1.0.0"
min_noctalia = "5.0.0"
icon = "package"
author = "avivbintangaringga"
description = "Nixpkgs update monitor"
tags = [ "nixos", "utility" ]
dependencies = [ "nix", "nixos-version", "nixos-rebuild", "git", "du", "cat", "awk", "grep", "tail", "wc", "kill", "pkill" ]
license = "MIT"
[[widget]]
id = "nix-monitor"
entry = "nix_monitor.luau"
[[widget.setting]]
key = "show_text"
type = "bool"
label_key = "setting.widget.show_text.label"
default = true
[[widget.setting]]
key = "colorize_text"
type = "bool"
label_key = "setting.widget.colorize_text.label"
default = false
[[widget.setting]]
key = "show_glyph"
type = "bool"
label_key = "setting.widget.show_glyph.label"
default = true
[[widget.setting]]
key = "colorize_glyph"
type = "bool"
label_key = "setting.widget.colorize_glyph.label"
default = true
[[widget.setting]]
key = "up_to_date_glyph"
type = "glyph"
label_key = "setting.widget.up_to_date_glyph.label"
default = "rosette-discount-check"
[[widget.setting]]
key = "up_to_date_color"
type = "color"
label_key = "setting.widget.up_to_date_color.label"
default = "#57ff57"
[[widget.setting]]
key = "checking_glyph"
type = "glyph"
label_key = "setting.widget.checking_glyph.label"
default = "loader-3"
[[widget.setting]]
key = "checking_color"
type = "color"
label_key = "setting.widget.checking_color.label"
default = "#ffeb57"
[[widget.setting]]
key = "update_available_glyph"
type = "glyph"
label_key = "setting.widget.update_available_glyph.label"
default = "cloud-download"
[[widget.setting]]
key = "update_available_color"
type = "color"
label_key = "setting.widget.update_available_color.label"
default = "#ff5757"
[[widget.setting]]
key = "unknown_glyph"
type = "glyph"
label_key = "setting.widget.unknown_glyph.label"
default = "cloud-question"
[[widget.setting]]
key = "unknown_color"
type = "color"
label_key = "setting.widget.unknown_color.label"
default = "on_surface"
[[setting]]
key = "check_interval"
type = "int"
label_key = "setting.check_interval.label"
description_key = "setting.check_interval.description"
default = 60
min = 10
[[setting]]
key = "check_duration_threshold"
type = "int"
label_key = "setting.check_duration_threshold.label"
description_key = "setting.check_duration_threshold.description"
default = 5
min = 1
max = 30
[[setting]]
key = "system_stats_check_interval"
type = "int"
label_key = "setting.system_stats_check_interval.label"
description_key = "setting.system_stats_check_interval.description"
default = 10
min = 5
[[setting]]
key = "show_checking_notification"
type = "bool"
label_key = "setting.checking_notification.label"
description_key = "setting.checking_notification.description"
default = false
[[setting]]
key = "show_update_notification"
type = "bool"
label_key = "setting.show_update_notification.label"
description_key = "setting.show_update_notification.description"
default = true
[[setting]]
key = "branch"
type = "select"
label_key = "setting.branch.label"
description_key = "setting.branch.description"
options = [
{ value = "master", label_key = "setting.option.branch.master" },
{ value = "nixos-unstable", label_key = "setting.option.branch.nixos_unstable" },
{ value = "nixos-unstable-small", label_key = "setting.option.branch.nixos_unstable_small" },
{ value = "nixos-25.11", label_key = "setting.option.branch.nixos_25_11" },
{ value = "nixos-25.05", label_key = "setting.option.branch.nixos_25_05" },
{ value = "nixos-24.11", label_key = "setting.option.branch.nixos_24_11" },
{ value = "nixos-24.05", label_key = "setting.option.branch.nixos_24_05" },
{ value = "nixos-23.11", label_key = "setting.option.branch.nixos_23_11" },
{ value = "nixos-23.05", label_key = "setting.option.branch.nixos_23_05" },
{ value = "nixos-25.11-small", label_key = "setting.option.branch.nixos_25_11_small" },
{ value = "nixos-25.05-small", label_key = "setting.option.branch.nixos_25_05_small" },
{ value = "nixos-24.11-small", label_key = "setting.option.branch.nixos_24_11_small" },
{ value = "nixos-24.05-small", label_key = "setting.option.branch.nixos_24_05_small" },
{ value = "nixos-23.11-small", label_key = "setting.option.branch.nixos_23_11_small" },
{ value = "nixos-23.05-small", label_key = "setting.option.branch.nixos_23_05_small" },
]
default = "nixos-unstable"
[[setting]]
key = "update_command"
type = "string"
label_key = "setting.update_command.label"
description_key = "setting.update_command.description"
default = ""
[[setting]]
key = "clean_command"
type = "string"
label_key = "setting.clean_command.label"
description_key = "setting.clean_command.description"
default = "nix-collect-garbage -d"
[[setting]]
key = "close_on_enter"
type = "bool"
label_key = "setting.close_on_enter.label"
description_key = "setting.close_on_enter.description"
default = true
[[panel]]
id = "panel"
entry = "panel.luau"
placement = "attached"
position = "auto"
open_near_click = true
width = 420
height = 370
[[service]]
id = "service"
entry = "nix_monitor_service.luau"