From 08559dae3db3c8a97a245bce51988463f8f5d8b4 Mon Sep 17 00:00:00 2001 From: Jakob Lichterfeld Date: Thu, 3 Oct 2024 09:15:13 +0200 Subject: [PATCH] style: use nixfmt style --- flake.nix | 24 +++++++++++------------- module.nix | 9 ++++----- treefmt.toml | 2 +- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index 916a0b893e..a8fd08a331 100644 --- a/flake.nix +++ b/flake.nix @@ -11,11 +11,10 @@ }; outputs = - inputs@{ - self, - flake-parts, - devenv, - ... + inputs@{ self + , flake-parts + , devenv + , ... }: flake-parts.lib.mkFlake { inherit inputs; } { @@ -32,13 +31,12 @@ ]; perSystem = - { - config, - self', - inputs', - pkgs, - system, - ... + { config + , self' + , inputs' + , pkgs + , system + , ... }: # legacy let @@ -196,7 +194,7 @@ package = pkgs.postgresql_16; listen_addresses = "127.0.0.1"; port = postgres_port; - initialDatabases = [ { name = "teslamate"; } ]; + initialDatabases = [{ name = "teslamate"; }]; initialScript = '' CREATE USER teslamate with encrypted password 'your_secure_password_here'; GRANT ALL PRIVILEGES ON DATABASE teslamate TO teslamate; diff --git a/module.nix b/module.nix index d038ea1b10..5497f469e9 100644 --- a/module.nix +++ b/module.nix @@ -1,9 +1,8 @@ { self }: -{ - config, - lib, - pkgs, - ... +{ config +, lib +, pkgs +, ... }: let teslamate = self.packages.${pkgs.system}.default; diff --git a/treefmt.toml b/treefmt.toml index e64cc147fc..5771b12021 100644 --- a/treefmt.toml +++ b/treefmt.toml @@ -56,7 +56,7 @@ excludes = [] includes = ["*.cjs", "*.css", "*.html", "*.js", "*.json", "*.json5", "*.jsx", "*.md", "*.mdx", "*.mjs", "*.scss", "*.ts", "*.tsx", "*.vue", "*.yaml", "*.yml"] options = ["--write"] -[formatter.nixfmt-rfc-style] +[formatter.nixfmt] command = "nixfmt" excludes = [] includes = ["*.nix"]