mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: init
This commit is contained in:
commit
c19ea940bd
320 changed files with 23845 additions and 0 deletions
1
templates/haskell/.envrc
Executable file
1
templates/haskell/.envrc
Executable file
|
@ -0,0 +1 @@
|
|||
use flake
|
4
templates/haskell/.gitignore
vendored
Executable file
4
templates/haskell/.gitignore
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
.direnv
|
||||
.pre-commit-config.yaml
|
||||
.vscode
|
||||
dist-newstyle
|
10
templates/haskell/example.cabal
Executable file
10
templates/haskell/example.cabal
Executable file
|
@ -0,0 +1,10 @@
|
|||
cabal-version: 3.0
|
||||
name: example
|
||||
version: 0.1.0.0
|
||||
|
||||
executable main
|
||||
main-is: Main.hs
|
||||
build-depends:
|
||||
, base
|
||||
default-language: Haskell2010
|
||||
hs-source-dirs: src
|
21
templates/haskell/flake.nix
Executable file
21
templates/haskell/flake.nix
Executable file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
inputs = {
|
||||
haskell-flake.url = "github:srid/haskell-flake";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
pre-commit-hooks-nix.url = "github:cachix/pre-commit-hooks.nix";
|
||||
};
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-parts,
|
||||
...
|
||||
}:
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
imports = [
|
||||
inputs.haskell-flake.flakeModule
|
||||
inputs.pre-commit-hooks-nix.flakeModule
|
||||
./parts
|
||||
];
|
||||
systems = nixpkgs.lib.systems.flakeExposed;
|
||||
};
|
||||
}
|
0
templates/haskell/justfile
Executable file
0
templates/haskell/justfile
Executable file
15
templates/haskell/parts/default.nix
Executable file
15
templates/haskell/parts/default.nix
Executable file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
perSystem = {
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
self',
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./devshells.nix
|
||||
./packages.nix
|
||||
./pre-commit.nix
|
||||
];
|
||||
};
|
||||
}
|
58
templates/haskell/parts/devshells.nix
Executable file
58
templates/haskell/parts/devshells.nix
Executable file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
haskellProjects.default = {
|
||||
devShell = {
|
||||
enable = true;
|
||||
|
||||
tools = hp: {
|
||||
inherit
|
||||
(hp)
|
||||
cabal-fmt
|
||||
haskell-language-server
|
||||
;
|
||||
|
||||
inherit
|
||||
(pkgs)
|
||||
alejandra
|
||||
dhall
|
||||
dhall-json
|
||||
dhall-lsp-server
|
||||
helix-gpt
|
||||
just
|
||||
libz
|
||||
ngrep
|
||||
nil
|
||||
nodejs_22
|
||||
sops
|
||||
ssh-to-age
|
||||
stripe-cli
|
||||
vscode-langservers-extracted
|
||||
zlib
|
||||
;
|
||||
|
||||
inherit
|
||||
(pkgs.elmPackages)
|
||||
elm
|
||||
elm-format
|
||||
elm-land
|
||||
elm-language-server
|
||||
elm-review
|
||||
elm-test
|
||||
;
|
||||
|
||||
inherit
|
||||
(pkgs.nodePackages)
|
||||
"@commitlint/config-conventional"
|
||||
npm
|
||||
typescript-language-server
|
||||
;
|
||||
};
|
||||
|
||||
hlsCheck.enable = true;
|
||||
mkShellArgs.shellHook = "${config.pre-commit.installationScript}";
|
||||
};
|
||||
};
|
||||
}
|
1
templates/haskell/parts/packages.nix
Executable file
1
templates/haskell/parts/packages.nix
Executable file
|
@ -0,0 +1 @@
|
|||
{self, ...}: {packages.default = self.packages.example;}
|
7
templates/haskell/parts/pre-commit.nix
Executable file
7
templates/haskell/parts/pre-commit.nix
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
pre-commit.settings.hooks = {
|
||||
alejandra.enable = true;
|
||||
commitizen.enable = true;
|
||||
statix.enable = true;
|
||||
};
|
||||
}
|
4
templates/haskell/src/Main.hs
Executable file
4
templates/haskell/src/Main.hs
Executable file
|
@ -0,0 +1,4 @@
|
|||
module Main where
|
||||
|
||||
main :: IO ()
|
||||
main = putStrLn "Hello, World!"
|
Loading…
Add table
Add a link
Reference in a new issue