Compare commits
3 Commits
72a10c5ec0
...
921c6a174b
Author | SHA1 | Date | |
---|---|---|---|
921c6a174b | |||
3a1f6c24ba | |||
a4d83d6bb8 |
14
flake.lock
generated
14
flake.lock
generated
@ -5,11 +5,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710094054,
|
"lastModified": 1710767791,
|
||||||
"narHash": "sha256-ImjYfn/C39bk1LGxc91JtiE0Gboh1mbwVHzicT++7L8=",
|
"narHash": "sha256-E8alxBNjaf0BnXArNXNPfqqNkcLQmc/YSnsfS+FStQg=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "c3b35cdd2d5b403a52103b90088b11251318ee63",
|
"rev": "a8c527ba18fb335811ad42f86199181032d7b367",
|
||||||
"revCount": 7,
|
"revCount": 9,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.t-juice.club/torjus/ghettoptt"
|
"url": "https://git.t-juice.club/torjus/ghettoptt"
|
||||||
},
|
},
|
||||||
@ -42,11 +42,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709703039,
|
"lastModified": 1710631334,
|
||||||
"narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
|
"narHash": "sha256-rL5LSYd85kplL5othxK5lmAtjyMOBg390sGBTb3LRMM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
|
"rev": "c75037bbf9093a2acb617804ee46320d6d1fea5a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -151,6 +151,7 @@
|
|||||||
# ",code:202,exec,mumble rpc starttalking"
|
# ",code:202,exec,mumble rpc starttalking"
|
||||||
#",code:202,pass,^(info\.mumble\.Mumble)$"
|
#",code:202,pass,^(info\.mumble\.Mumble)$"
|
||||||
# ",code:202,exec,pamixer --default-source -u"
|
# ",code:202,exec,pamixer --default-source -u"
|
||||||
|
",code:202,pass,^discord$"
|
||||||
|
|
||||||
# worspace switching
|
# worspace switching
|
||||||
"$mainMod,1,workspace,name:main 1"
|
"$mainMod,1,workspace,name:main 1"
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
spicetify-cli
|
spicetify-cli
|
||||||
sshfs
|
sshfs
|
||||||
unstable.ventoy
|
unstable.ventoy
|
||||||
|
discord
|
||||||
|
|
||||||
# k8s tools
|
# k8s tools
|
||||||
unstable.talosctl
|
unstable.talosctl
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../system/monitoring.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Sops stuff
|
# Sops stuff
|
||||||
|
33
system/monitoring.nix
Normal file
33
system/monitoring.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
prometheus-node-exporter
|
||||||
|
prometheus-systemd-exporter
|
||||||
|
];
|
||||||
|
|
||||||
|
systemd.services."node-exporter" = {
|
||||||
|
enable = true;
|
||||||
|
unitConfig = {
|
||||||
|
Description = "Prometheus Node Exporter";
|
||||||
|
After = [ "network.target" ];
|
||||||
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.prometheus-node-exporter}/bin/node_exporter";
|
||||||
|
};
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."systemd-exporter" = {
|
||||||
|
enable = true;
|
||||||
|
unitConfig = {
|
||||||
|
Description = "Prometheus Systemd Exporter";
|
||||||
|
After = [ "network.target" ];
|
||||||
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter";
|
||||||
|
};
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 9100 9558 8989 ];
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user