Run formatter

This commit is contained in:
Toast 2025-12-14 01:07:21 +01:00
parent 04163b2c79
commit e863aea052
7 changed files with 36 additions and 25 deletions

View file

@ -1,18 +1,23 @@
{lib}: { {lib}: {
/** /**
Make a NetworkManager wifi profile, to be used with ensureProfiles Make a NetworkManager wifi profile, to be used with ensureProfiles
*/ */
mkWifiProfile = {id, ssid, priority ? 0, wifi-security}: { mkWifiProfile = {
connection = { id,
inherit id; ssid,
type = "wifi"; priority ? 0,
autoconnect-priority = priority; wifi-security,
}; }: {
ipv4.method = "auto"; connection = {
wifi = { inherit id;
mode = "infrastructure"; type = "wifi";
inherit ssid; autoconnect-priority = priority;
}; };
inherit wifi-security; ipv4.method = "auto";
}; wifi = {
mode = "infrastructure";
inherit ssid;
};
inherit wifi-security;
};
} }

View file

@ -72,7 +72,7 @@
xserver.xkb.layout = lib.mkForce "us"; xserver.xkb.layout = lib.mkForce "us";
}; };
# Enable bluetooth # Enable bluetooth
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
}; };

View file

@ -1,4 +1,4 @@
{config,...}: { {config, ...}: {
# I prefer using the go implementation # I prefer using the go implementation
services.endlessh-go = { services.endlessh-go = {
enable = true; enable = true;

View file

@ -7,7 +7,7 @@
sops.secrets = let sops.secrets = let
owner = config.services.forgejo.user; owner = config.services.forgejo.user;
group = config.services.forgejo.group; group = config.services.forgejo.group;
in{ in {
"forgejoHostKey/private" = { "forgejoHostKey/private" = {
inherit owner group; inherit owner group;
name = "id_forgejo"; name = "id_forgejo";

View file

@ -95,5 +95,5 @@ in {
UMask = "0077"; UMask = "0077";
}; };
}; };
programs.rust-motd.settings.service_status."Minecraft (SkyFactory 5)"= "minecraft-server-sf5"; programs.rust-motd.settings.service_status."Minecraft (SkyFactory 5)" = "minecraft-server-sf5";
} }

View file

@ -22,10 +22,12 @@
]; ];
}; };
services.grafana.provision = { services.grafana.provision = {
datasources.settings.datasources = [{ datasources.settings.datasources = [
name = "Prometheus"; {
type = "prometheus"; name = "Prometheus";
url = "http://127.0.0.1:${builtins.toString config.services.prometheus.port}"; type = "prometheus";
}]; url = "http://127.0.0.1:${builtins.toString config.services.prometheus.port}";
}
];
}; };
} }

View file

@ -1,4 +1,8 @@
{config, pkgs, ...}: let {
config,
pkgs,
...
}: let
transmissionUid = toString config.users.users.transmission.uid; transmissionUid = toString config.users.users.transmission.uid;
transmissionGid = toString config.users.groups.transmission.gid; transmissionGid = toString config.users.groups.transmission.gid;
mountPoint = config.fileSystems."nfs_transmission".mountPoint; mountPoint = config.fileSystems."nfs_transmission".mountPoint;