style: avoid final newlines in secrets/*

format using nixfmt-rfc-style
This commit is contained in:
teutat3s 2024-08-19 10:14:21 +02:00
parent 3a61d04b02
commit 1395a620b4
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 12 additions and 1 deletions

View file

@ -20,6 +20,14 @@ indent_style = unset
indent_size = unset indent_size = unset
[{.*,secrets}/**] [{.*,secrets}/**]
end_of_line = false
insert_final_newline = false
trim_trailing_whitespace = unset
charset = unset
indent_style = unset
indent_size = unset
[*.rom]
end_of_line = unset end_of_line = unset
insert_final_newline = unset insert_final_newline = unset
trim_trailing_whitespace = unset trim_trailing_whitespace = unset

View file

@ -102,6 +102,8 @@
}; };
flake = { flake = {
formatter."x86_64-linux" = inputs.unstable.legacyPackages."x86_64-linux".nixfmt-rfc-style;
deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations { deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations {
#example = { #example = {
# hostname = "example.com:22"; # hostname = "example.com:22";

View file

@ -1,5 +1,6 @@
[formatter.nix] [formatter.nix]
command = "alejandra" command = "nix"
options = ["fmt"]
includes = ["*.nix"] includes = ["*.nix"]
excludes = ["pkgs/_sources/generated.nix"] excludes = ["pkgs/_sources/generated.nix"]