[shared] Formatters in their own file

This commit is contained in:
Martin Berg Alstad 2025-04-16 00:08:42 +02:00
parent e515408ef2
commit 3c5484f1a1
Signed by: martials
GPG Key ID: 706F53DD087A91DE
4 changed files with 17 additions and 11 deletions

View File

@ -97,7 +97,7 @@
defaultAttrs = {
user = {
name = common.username;
password = "temp";
password = "temp"; # TODO
};
version = common.system.version;
wayland.enable = true;

View File

@ -1,12 +1,11 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
imports = [
(lib.custom.relativeToRoot "shared/modules/development/formatters.nix")
];
environment.systemPackages = with pkgs; [
# Tools
just
# Formatters
treefmt
shfmt
nodePackages.prettier
];
];
}

View File

@ -4,6 +4,7 @@
imports = [
./docker.nix
./dotnet.nix
./formatters.nix
./nix.nix
./node.nix
./ollama.nix
@ -17,8 +18,5 @@
git
just
unstable.libpq # Required for PostgreSQL
# Formatters
treefmt
shfmt
];
}

View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nodePackages.prettier
treefmt
shfmt
];
}