Skip to content

Commit 0637050

Browse files
ghostty?
1 parent 2f8c097 commit 0637050

File tree

8 files changed

+100
-68
lines changed

8 files changed

+100
-68
lines changed

desktop/l/below.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# below.nix
3+
#
4+
# systemctl status below
5+
#
6+
{ config, pkgs, ... }:
7+
{
8+
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/monitoring/below.nix
9+
services.below = {
10+
enable = true;
11+
12+
# Enable all collection options
13+
collect = {
14+
diskStats = true; # Enable disk_stat collection (default: true)
15+
ioStats = true; # Enable io.stat collection for cgroups
16+
exitStats = true; # Enable eBPF-based exitstats (default: true)
17+
};
18+
19+
# Enable data compression to save storage space
20+
compression.enable = true;
21+
22+
# Retain data for 7 days (604800 seconds = 7 * 24 * 3600)
23+
retention.time = 604800;
24+
};
25+
}

desktop/l/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
./nginx.nix
5050
./ollama-service.nix
5151
./fan2go.nix
52+
./below.nix
5253
];
5354

5455
boot = {

desktop/l/flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop/l/grafana.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
services.grafana = {
88
enable = true;
99
settings = {
10+
security.admin_password = "admin"; # this is my local only instance
11+
users.password_hint = "admin";
1012
server = {
1113
# Listening Address
12-
http_addr = "0.0.0.0";
14+
http_addr = "127.0.0.1";
1315
# and Port
1416
http_port = 3000;
1517
# Grafana needs to know on which domain and URL it's running

desktop/l/home.nix

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
# https://ghostty.zerebos.com/app/import-export
1616
# no scorllback limit
1717
# https://github.com/ghostty-org/ghostty/issues/111
18-
xdg.configFile."ghostty/config.toml".text = ''
19-
term = xterm-256color
20-
scrollback-limit = 10000001
21-
image-storage-limit = 320000001
22-
clipboard-write = allow
23-
window-subtitle = working-directory
24-
background-opacity = 0.91
25-
# Reduced blur from 20 to 5 for better SSH/remote terminal performance
26-
# GPU-accelerated blur can cause lag with rapid terminal output over SSH
27-
background-blur = 5
28-
'';
18+
# xdg.configFile."ghostty/config.toml".text = ''
19+
# term = xterm-256color
20+
# scrollback-limit = 10000001
21+
# image-storage-limit = 320000001
22+
# clipboard-write = allow
23+
# window-subtitle = working-directory
24+
# background-opacity = 0.91
25+
# # Reduced blur from 20 to 5 for better SSH/remote terminal performance
26+
# # GPU-accelerated blur can cause lag with rapid terminal output over SSH
27+
# background-blur = 5
28+
# '';
2929

3030
home = {
3131
username = "das";
@@ -502,7 +502,7 @@
502502
jnoortheen.nix-ide
503503
rust-lang.rust-analyzer
504504
bazelbuild.vscode-bazel
505-
continue.continue
505+
#continue.continue # stopped working 2025/11/04
506506
rooveterinaryinc.roo-cline
507507
waderyan.gitblame
508508
];

desktop/l/nodeExporter.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
enable = true;
1111
port = 19000;
1212
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/monitoring/prometheus/exporters.nix
13-
enabledCollectors = [ "systemd" ];
13+
enabledCollectors = [ "pressure" "diskstats" "filesystem" "meminfo" "vmstat" ];
1414
# /nix/store/zgsw0yx18v10xa58psanfabmg95nl2bb-node_exporter-1.8.1/bin/node_exporter --help
1515
extraFlags = [
1616
"--collector.ethtool"
@@ -21,7 +21,9 @@
2121
};
2222

2323
# https://search.nixos.org/options?channel=24.05&from=200&size=50&sort=relevance&type=packages&query=services.prometheus.exporters
24-
services.prometheus.exporters.systemd.enable = true;
25-
services.prometheus.exporters.smartctl.enable = true;
26-
services.prometheus.exporters.process.enable = true;
24+
services.prometheus.exporters = {
25+
systemd.enable = true;
26+
smartctl.enable = true;
27+
process.enable = true;
28+
};
2729
}

desktop/l/prometheus.nix

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,59 @@
77
services.prometheus = {
88
enable = true;
99
globalConfig.scrape_interval = "10s"; # "1m"
10+
retentionTime = "90d";
1011
scrapeConfigs = [
1112
{
1213
job_name = "node";
1314
static_configs = [{
1415
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
1516
}];
1617
}
17-
{
18-
job_name = "xtcp";
19-
static_configs = [{
20-
targets = [ "localhost:9088" ];
21-
}];
22-
}
23-
{
24-
job_name = "hp1_xtcp";
25-
static_configs = [{
26-
targets = [ "hp1:9088" ];
27-
}];
28-
}
29-
{
30-
job_name = "clickhouse";
31-
static_configs = [{
32-
#targets = [ "localhost:9363" ];
33-
targets = [ "localhost:19363" ];
34-
}];
35-
}
36-
{
37-
job_name = "hp1";
38-
static_configs = [{
39-
targets = [ "hp1:${toString config.services.prometheus.exporters.node.port}" ];
40-
}];
41-
}
42-
{
43-
job_name = "hp1_clickhouse";
44-
static_configs = [{
45-
#targets = [ "localhost:9363" ];
46-
targets = [ "hp1:19363" ];
47-
}];
48-
}
49-
{
50-
job_name = "hp2";
51-
static_configs = [{
52-
targets = [ "hp2:${toString config.services.prometheus.exporters.node.port}" ];
53-
}];
54-
}
55-
{
56-
job_name = "hp2_clickhouse";
57-
static_configs = [{
58-
#targets = [ "localhost:9363" ];
59-
targets = [ "hp2:19363" ];
60-
}];
61-
}
18+
# {
19+
# job_name = "xtcp";
20+
# static_configs = [{
21+
# targets = [ "localhost:9088" ];
22+
# }];
23+
# }
24+
# {
25+
# job_name = "hp1_xtcp";
26+
# static_configs = [{
27+
# targets = [ "hp1:9088" ];
28+
# }];
29+
# }
30+
# {
31+
# job_name = "clickhouse";
32+
# static_configs = [{
33+
# #targets = [ "localhost:9363" ];
34+
# targets = [ "localhost:19363" ];
35+
# }];
36+
# }
37+
# {
38+
# job_name = "hp1";
39+
# static_configs = [{
40+
# targets = [ "hp1:${toString config.services.prometheus.exporters.node.port}" ];
41+
# }];
42+
# }
43+
# {
44+
# job_name = "hp1_clickhouse";
45+
# static_configs = [{
46+
# #targets = [ "localhost:9363" ];
47+
# targets = [ "hp1:19363" ];
48+
# }];
49+
# }
50+
# {
51+
# job_name = "hp2";
52+
# static_configs = [{
53+
# targets = [ "hp2:${toString config.services.prometheus.exporters.node.port}" ];
54+
# }];
55+
# }
56+
# {
57+
# job_name = "hp2_clickhouse";
58+
# static_configs = [{
59+
# #targets = [ "localhost:9363" ];
60+
# targets = [ "hp2:19363" ];
61+
# }];
62+
# }
6263
#{
6364
# job_name = "chromebox1";
6465
# static_configs = [{

desktop/l/systemPackages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# $ nix search wget
1010
environment.systemPackages = with pkgs; [
1111
# Basic system tools
12+
sysstat
1213
psmisc
1314
vim
1415
curl

0 commit comments

Comments
 (0)