Compare commits

...

3 Commits

Author SHA1 Message Date
921c6a174b Add discord ptt shortcut
Some checks failed
pre-commit / pre-commit (push) Failing after 24s
2024-03-20 02:53:23 +01:00
3a1f6c24ba Update ghettoptt 2024-03-18 14:19:11 +01:00
a4d83d6bb8 Add monitoring services 2024-03-18 00:18:17 +01:00
5 changed files with 43 additions and 7 deletions

14
flake.lock generated
View File

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1710094054,
"narHash": "sha256-ImjYfn/C39bk1LGxc91JtiE0Gboh1mbwVHzicT++7L8=",
"lastModified": 1710767791,
"narHash": "sha256-E8alxBNjaf0BnXArNXNPfqqNkcLQmc/YSnsfS+FStQg=",
"ref": "master",
"rev": "c3b35cdd2d5b403a52103b90088b11251318ee63",
"revCount": 7,
"rev": "a8c527ba18fb335811ad42f86199181032d7b367",
"revCount": 9,
"type": "git",
"url": "https://git.t-juice.club/torjus/ghettoptt"
},
@ -42,11 +42,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1709703039,
"narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
"lastModified": 1710631334,
"narHash": "sha256-rL5LSYd85kplL5othxK5lmAtjyMOBg390sGBTb3LRMM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
"rev": "c75037bbf9093a2acb617804ee46320d6d1fea5a",
"type": "github"
},
"original": {

View File

@ -151,6 +151,7 @@
# ",code:202,exec,mumble rpc starttalking"
#",code:202,pass,^(info\.mumble\.Mumble)$"
# ",code:202,exec,pamixer --default-source -u"
",code:202,pass,^discord$"
# worspace switching
"$mainMod,1,workspace,name:main 1"

View File

@ -33,6 +33,7 @@
spicetify-cli
sshfs
unstable.ventoy
discord
# k8s tools
unstable.talosctl

View File

@ -3,6 +3,7 @@
{
imports = [
./hardware-configuration.nix
../../system/monitoring.nix
];
# Sops stuff

33
system/monitoring.nix Normal file
View 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 ];
}