From c43599bfa0e23af06e246c69a2330d9299212543 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 23 Aug 2024 18:04:20 +0200 Subject: [PATCH] Format --- flake.nix | 8 +++++--- lib/build-clan/module.nix | 20 ++++++++++++------- .../app/src/routes/machines/[name]/view.tsx | 4 ++-- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index e240d7ef2..cd9d25b09 100644 --- a/flake.nix +++ b/flake.nix @@ -57,9 +57,11 @@ # Inherit the nixos-facter package so its build is chached in clans binary cache { - perSystem = {system, inputs', ...}: { - packages.nixos-facter = inputs'.nixos-facter.packages.default; - }; + perSystem = + { inputs', ... }: + { + packages.nixos-facter = inputs'.nixos-facter.packages.default; + }; } ]; } diff --git a/lib/build-clan/module.nix b/lib/build-clan/module.nix index 97739c09f..8100ce4a6 100644 --- a/lib/build-clan/module.nix +++ b/lib/build-clan/module.nix @@ -81,14 +81,20 @@ let "${directory}/machines/${name}/configuration.nix" hwConfig ]; - config.warnings = lib.optionals (builtins.all builtins.pathExists [hwConfig facterJson]) [ - '' - Duplicate hardware facts: '${hwConfig}' and '${facterJson}' exist. - Using both is not recommended. + config.warnings = + lib.optionals + (builtins.all builtins.pathExists [ + hwConfig + facterJson + ]) + [ + '' + Duplicate hardware facts: '${hwConfig}' and '${facterJson}' exist. + Using both is not recommended. - It is recommended to use the hardware facts from '${facterJson}', please remove '${hwConfig}'. - '' - ]; + It is recommended to use the hardware facts from '${facterJson}', please remove '${hwConfig}'. + '' + ]; } settings clan-core.nixosModules.clanCore diff --git a/pkgs/webview-ui/app/src/routes/machines/[name]/view.tsx b/pkgs/webview-ui/app/src/routes/machines/[name]/view.tsx index 5dddb224e..43622b589 100644 --- a/pkgs/webview-ui/app/src/routes/machines/[name]/view.tsx +++ b/pkgs/webview-ui/app/src/routes/machines/[name]/view.tsx @@ -94,7 +94,7 @@ const InstallMachine = (props: InstallMachineProps) => { } const loading_toast = toast.loading( - "Installing machine. Grab coffee (15min)..." + "Installing machine. Grab coffee (15min)...", ); const r = await callApi("install_machine", { opts: { @@ -371,7 +371,7 @@ const MachineForm = (props: MachineDetailsProps) => { }); if (machine_response.status === "error") { toast.error( - `Failed to set machine: ${machine_response.errors[0].message}` + `Failed to set machine: ${machine_response.errors[0].message}`, ); } if (machine_response.status === "success") {