some stuff

This commit is contained in:
xunuwu 2024-05-21 22:15:08 +02:00
parent cd8343c0c4
commit d2fd9fda8a
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
26 changed files with 377 additions and 83 deletions

View file

@ -44,6 +44,8 @@ in {
"${self}/secrets"
"${self}/secrets/nixdesk"
"${mod}/network/wifi.nix"
"${mod}/services/syncthing.nix"
"${mod}/services/virt/podman.nix"
"${mod}/services/virt/waydroid.nix"
@ -52,6 +54,7 @@ in {
"${mod}/desktop/x11/nosleep.nix"
"${mod}/programs/gamemode.nix"
"${mod}/programs/gamescope.nix"
"${mod}/programs/steam.nix"
{
@ -65,6 +68,7 @@ in {
hopper = {
deployment = {
targetUser = "xun";
targetHost = "hopper.local";
};
imports = [
./hopper

View file

@ -4,7 +4,17 @@
config,
...
}: {
networking.firewall.allowedTCPPorts = [4444];
networking.firewall.allowedTCPPorts = [
4444
];
systemd.services."static-web-server".after = ["brawlstats.timer"];
services.static-web-server = {
enable = true;
root = "/var/lib/brawlstats";
listen = "[::]:3434";
};
systemd.sockets."brawlstats-web" = {
wantedBy = ["sockets.target"];
@ -31,7 +41,7 @@
set xlabel 'Time'
set ylabel 'Trophies'
set term svg
plot "/dev/stdin" using 1:2 with linespoints title 'Data'
plot "/dev/stdin" using 1:2 with linespoints notitle
''} # 2>/dev/null
}

View file

@ -1,10 +1,16 @@
{inputs, ...}: {
{
inputs,
config,
pkgs,
...
}: {
imports = [
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-gpu-amd
inputs.hardware.nixosModules.common-pc-ssd
./gigabyte-b550-fix.nix
];
boot = {
initrd = {
availableKernelModules = [
@ -18,6 +24,9 @@
kernelModules = ["amdgpu"];
};
kernelModules = ["kvm-amd"];
extraModulePackages = with config.boot.kernelPackages; [
rtl88xxau-aircrack # usb wifi card
];
loader = {
timeout = 10;
systemd-boot = {