[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 = { defaultAttrs = {
user = { user = {
name = common.username; name = common.username;
password = "temp"; password = "temp"; # TODO
}; };
version = common.system.version; version = common.system.version;
wayland.enable = true; 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; [ environment.systemPackages = with pkgs; [
# Tools
just just
# Formatters ];
treefmt
shfmt
nodePackages.prettier
];
} }

View File

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

View File

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