Skip to content

Commit

Permalink
feat: wanna see my nix config :)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Nov 1, 2024
1 parent ea8d7d6 commit dc0bec2
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
description = "NUTS flake";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodePackages.prettier
just
];
};
}
);
}

13 changes: 13 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
alias c := check
alias f := fix

default:
@just --list

# Check style
check:
prettier --check .

# Fix style
fix:
prettier --check .

0 comments on commit dc0bec2

Please sign in to comment.