chore: reformat codebase

This commit is contained in:
Gabriel Arazas 2023-12-15 13:27:12 +08:00
parent 9064126ca4
commit b533507f40
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
21 changed files with 42 additions and 21 deletions

View File

@ -6,7 +6,8 @@ let
cfg = hostCfg.hardware.qol;
in
{
options.hosts.ni.hardware.qol.enable = lib.mkEnableOption "quality-of-life hardware features";
options.hosts.ni.hardware.qol.enable =
lib.mkEnableOption "quality-of-life hardware features";
config = lib.mkIf cfg.enable {
# Bring in some of them good tools.

View File

@ -5,7 +5,8 @@ let
cfg = hostCfg.setups.gaming;
in
{
options.hosts.ni.setups.gaming.enable = lib.mkEnableOption "gaming setup";
options.hosts.ni.setups.gaming.enable =
lib.mkEnableOption "gaming setup";
config = lib.mkIf cfg.enable {
# Bring all of the goodies.

View File

@ -5,7 +5,8 @@ let
cfg = hostCfg.setups.music;
in
{
options.hosts.ni.setups.music.enable = lib.mkEnableOption "music streaming and organizing setup";
options.hosts.ni.setups.music.enable =
lib.mkEnableOption "music streaming and organizing setup";
config = lib.mkIf cfg.enable {
# My portable music streaming server.

View File

@ -13,7 +13,8 @@ let
host = interfaces.lan.IPv4.address;
in
{
options.hosts.plover.services.atuin.enable = lib.mkEnableOption "Atuin sync server setup";
options.hosts.plover.services.atuin.enable =
lib.mkEnableOption "Atuin sync server setup";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -45,7 +45,8 @@ let
};
in
{
options.hosts.plover.services.backup.enable = lib.mkEnableOption "backup service";
options.hosts.plover.services.backup.enable =
lib.mkEnableOption "backup service";
config = lib.mkIf cfg.enable {
sops.secrets = lib.getSecrets ../../secrets/secrets.yaml {

View File

@ -9,7 +9,8 @@ let
postgresqlDomain = "postgres.${config.networking.domain}";
in
{
options.hosts.plover.services.database.enable = lib.mkEnableOption "preferred service SQL database";
options.hosts.plover.services.database.enable =
lib.mkEnableOption "preferred service SQL database";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -33,7 +33,8 @@ let
dnsOverHTTPSPort = 8443;
in
{
options.hosts.plover.services.dns-server.enable = lib.mkEnableOption "preferred DNS server";
options.hosts.plover.services.dns-server.enable =
lib.mkEnableOption "preferred DNS server";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -7,7 +7,8 @@ let
inherit (import ../hardware/networks.nix) interfaces;
in
{
options.hosts.plover.services.fail2ban.enable = lib.mkEnableOption "fail2ban monitoring";
options.hosts.plover.services.fail2ban.enable =
lib.mkEnableOption "fail2ban monitoring";
config = lib.mkIf cfg.enable {
services.fail2ban = {

View File

@ -13,7 +13,8 @@ let
giteaDatabaseUser = config.services.gitea.user;
in
{
options.hosts.plover.services.gitea.enable = lib.mkEnableOption "Gitea server for ${config.networking.domain}";
options.hosts.plover.services.gitea.enable =
lib.mkEnableOption "Gitea server for ${config.networking.domain}";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -15,7 +15,8 @@ let
vouchSettings = config.services.vouch-proxy.instances."${vouchDomain}".settings;
in
{
options.hosts.plover.services.grafana.enable = lib.mkEnableOption "monitoring dashboard for ${config.networking.hostName}";
options.hosts.plover.services.grafana.enable =
lib.mkEnableOption "monitoring dashboard for ${config.networking.hostName}";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -8,7 +8,8 @@ let
prometheusExports = config.services.prometheus.exporters;
in
{
options.hosts.plover.services.monitoring.enable = lib.mkEnableOption "preferred monitoring stack";
options.hosts.plover.services.monitoring.enable =
lib.mkEnableOption "preferred monitoring stack";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -6,7 +6,8 @@ let
cfg = hostCfg.services.reverse-proxy;
in
{
options.hosts.plover.services.reverse-proxy.enable = lib.mkEnableOption "preferred public-facing reverse proxy";
options.hosts.plover.services.reverse-proxy.enable =
lib.mkEnableOption "preferred public-facing reverse proxy";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -15,7 +15,8 @@ let
vaultwardenDbName = "vaultwarden";
in
{
options.hosts.plover.services.vaultwarden.enable = lib.mkEnableOption "Vaultwarden instance";
options.hosts.plover.services.vaultwarden.enable =
lib.mkEnableOption "Vaultwarden instance";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -9,7 +9,8 @@ let
authDomain = config.services.kanidm.serverSettings.domain;
in
{
options.hosts.plover.services.vouch-proxy.enable = lib.mkEnableOption "Vouch proxy setup";
options.hosts.plover.services.vouch-proxy.enable =
lib.mkEnableOption "Vouch proxy setup";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -15,7 +15,8 @@ let
};
in
{
options.hosts.plover.services.wezterm-mux-server.enable = lib.mkEnableOption "Wezterm mux server setup";
options.hosts.plover.services.wezterm-mux-server.enable =
lib.mkEnableOption "Wezterm mux server setup";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -14,7 +14,8 @@ let
phonePeerAddresses = with wireguardPeers.phone; [ "${IPv4}/32" "${IPv6}/128" ];
in
{
options.hosts.plover.services.wireguard.enable = lib.mkEnableOption "Wireguard VPN setup";
options.hosts.plover.services.wireguard.enable =
lib.mkEnableOption "Wireguard VPN setup";
config = lib.mkIf cfg.enable (lib.mkMerge [
{

View File

@ -8,7 +8,8 @@ let
getDotfiles = path: "${dotfiles}/${path}";
in
{
options.users.foo-dogsquared.dotfiles.enable = lib.mkEnableOption "custom outside dotfiles for other programs";
options.users.foo-dogsquared.dotfiles.enable =
lib.mkEnableOption "custom outside dotfiles for other programs";
config = lib.mkIf cfg.enable {
# Fetching my dotfiles,...

View File

@ -5,7 +5,8 @@ let
cfg = userCfg.programs.git;
in
{
options.users.foo-dogsquared.programs.git.enable = lib.mkEnableOption "foo-dogsquared's Git setup";
options.users.foo-dogsquared.programs.git.enable =
lib.mkEnableOption "foo-dogsquared's Git setup";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [

View File

@ -3,7 +3,8 @@
let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.programs.research;
in {
in
{
options.users.foo-dogsquared.programs.research.enable =
lib.mkEnableOption "foo-dogsquared's usual toolbelt for research";

View File

@ -6,7 +6,8 @@ let
cfg = userCfg.programs.shell;
in
{
options.users.foo-dogsquared.programs.shell.enable = lib.mkEnableOption "configuration of foo-dogsquared's shell of choice and its toolbelt";
options.users.foo-dogsquared.programs.shell.enable =
lib.mkEnableOption "configuration of foo-dogsquared's shell of choice and its toolbelt";
config = lib.mkIf cfg.enable {
# Add the dev home-manager profiles to be more of a hipster.

View File

@ -6,7 +6,8 @@ let
cfg = userCfg.setups.desktop;
in
{
options.users.foo-dogsquared.setups.desktop.enable = lib.mkEnableOption "a set of usual desktop productivity services";
options.users.foo-dogsquared.setups.desktop.enable =
lib.mkEnableOption "a set of usual desktop productivity services";
config = lib.mkIf cfg.enable {
# Install all of the desktop stuff.