Skip to content

Commit

Permalink
style: use nixfmt style
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobLichterfeld committed Oct 3, 2024
1 parent c780198 commit 08559da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
24 changes: 11 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
};

outputs =
inputs@{
self,
flake-parts,
devenv,
...
inputs@{ self
, flake-parts
, devenv
, ...
}:
flake-parts.lib.mkFlake { inherit inputs; } {

Expand All @@ -32,13 +31,12 @@
];

perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
{ config
, self'
, inputs'
, pkgs
, system
, ...
}:
# legacy
let
Expand Down Expand Up @@ -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;
Expand Down
9 changes: 4 additions & 5 deletions module.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{ self }:
{
config,
lib,
pkgs,
...
{ config
, lib
, pkgs
, ...
}:
let
teslamate = self.packages.${pkgs.system}.default;
Expand Down
2 changes: 1 addition & 1 deletion treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 08559da

Please sign in to comment.