From 1d3eadb471d214539cf89861c1debe34d1ce51a5 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 13 Jul 2023 20:50:18 +0200 Subject: [PATCH] Apply treefmt --- flake.nix | 2 +- hosts/pioneer-momo-koeln/caddy.nix | 5 +-- hosts/pioneer-momo-koeln/configuration.nix | 32 +++++++++++-------- hosts/pioneer-momo-koeln/default.nix | 11 ++++--- .../pioneer-momo-koeln/pioneer-momo-koeln.nix | 16 ++++++---- 5 files changed, 35 insertions(+), 31 deletions(-) diff --git a/flake.nix b/flake.nix index afb36080..52402045 100644 --- a/flake.nix +++ b/flake.nix @@ -132,7 +132,7 @@ users = digga.lib.rakeLeaves ./users; }; suites = with profiles; rec { - base = [ base-user users.root users.barkeeper ]; + base = [base-user users.root users.barkeeper]; pioneer-momo-koeln = base; }; diff --git a/hosts/pioneer-momo-koeln/caddy.nix b/hosts/pioneer-momo-koeln/caddy.nix index 8e90b16d..ac585f8a 100644 --- a/hosts/pioneer-momo-koeln/caddy.nix +++ b/hosts/pioneer-momo-koeln/caddy.nix @@ -1,7 +1,4 @@ -{ - config, - ... -}: { +{config, ...}: { # Changing the Caddyfile should only trigger a reload, not a restart systemd.services.caddy.reloadTriggers = [ config.services.caddy.configFile diff --git a/hosts/pioneer-momo-koeln/configuration.nix b/hosts/pioneer-momo-koeln/configuration.nix index a955f57b..7805a18e 100644 --- a/hosts/pioneer-momo-koeln/configuration.nix +++ b/hosts/pioneer-momo-koeln/configuration.nix @@ -1,14 +1,16 @@ -{ config, lib, pkgs, ... }: - { - imports = - [ - # Include the results of the hardware scan. - ./hardware-configuration.nix + config, + lib, + pkgs, + ... +}: { + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix - ./caddy.nix - ./keycloak.nix - ]; + ./caddy.nix + ./keycloak.nix + ]; pub-solar.core.lite = true; @@ -17,13 +19,15 @@ networking = { useDHCP = false; - interfaces.enp1s0.ipv4.addresses = [{ - address = "80.244.242.4"; - prefixLength = 29; - }]; + interfaces.enp1s0.ipv4.addresses = [ + { + address = "80.244.242.4"; + prefixLength = 29; + } + ]; defaultGateway = "80.244.242.1"; - nameservers = [ "95.129.51.51" "80.244.244.244" ]; + nameservers = ["95.129.51.51" "80.244.244.244"]; }; # Enable the OpenSSH daemon. diff --git a/hosts/pioneer-momo-koeln/default.nix b/hosts/pioneer-momo-koeln/default.nix index 0071a39c..4819291e 100644 --- a/hosts/pioneer-momo-koeln/default.nix +++ b/hosts/pioneer-momo-koeln/default.nix @@ -1,6 +1,7 @@ -{ suites, ... }: -{ - imports = [ - ./pioneer-momo-koeln.nix - ] ++ suites.pioneer-momo-koeln; +{suites, ...}: { + imports = + [ + ./pioneer-momo-koeln.nix + ] + ++ suites.pioneer-momo-koeln; } diff --git a/hosts/pioneer-momo-koeln/pioneer-momo-koeln.nix b/hosts/pioneer-momo-koeln/pioneer-momo-koeln.nix index 96883203..bca7d463 100644 --- a/hosts/pioneer-momo-koeln/pioneer-momo-koeln.nix +++ b/hosts/pioneer-momo-koeln/pioneer-momo-koeln.nix @@ -1,12 +1,14 @@ -{ config, pkgs, lib, ... }: -with lib; -with pkgs; -let - psCfg = config.pub-solar; -in { + config, + pkgs, + lib, + ... +}: +with lib; +with pkgs; let + psCfg = config.pub-solar; +in { imports = [ ./configuration.nix ]; - }