From 8e6a40e87831743565a56006848c9b4c3fa2d56b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 15 Nov 2023 13:10:27 +0100 Subject: [PATCH] fix formatter error --- agenix.nix | 3 +-- configuration.nix | 8 ++++++-- flake.nix | 3 +-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/agenix.nix b/agenix.nix index 2f442c0..afaaeb7 100644 --- a/agenix.nix +++ b/agenix.nix @@ -1,5 +1,4 @@ -{ machine, ...}: -{ +{ machine, ... }: { age = { identityPaths = [ "/root/age_ed25519" ]; diff --git a/configuration.nix b/configuration.nix index 15c49d8..bb8a309 100644 --- a/configuration.nix +++ b/configuration.nix @@ -32,7 +32,9 @@ KbdInteractiveAuthentication = false; }; extraConfig = '' - HostCertificate ${builtins.toFile "host_ed25519-cert.pub" machine.host-cert} + HostCertificate ${ + builtins.toFile "host_ed25519-cert.pub" machine.host-cert + } HostKey ${config.age.secrets.host_ed25519.path} ''; }; @@ -66,7 +68,9 @@ }; extraConfig = '' - CertificateFile ${builtins.toFile "user_ed25519-cert.pub" machine.user-cert} + CertificateFile ${ + builtins.toFile "user_ed25519-cert.pub" machine.user-cert + } HostKey ${config.age.secrets.user_ed25519.path} ''; }; diff --git a/flake.nix b/flake.nix index 9b2b797..bba273f 100644 --- a/flake.nix +++ b/flake.nix @@ -39,8 +39,7 @@ ]; }; - # TODO. if uncommented, nix flake check fails - # formatter = pkgs.nixfmt; + formatter.${system} = pkgs.nixfmt; nixosConfigurations = mkNixosSystems (machine: { inherit system;