mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: elm template init
This commit is contained in:
parent
a2bf6014ff
commit
237e8fa0fe
8 changed files with 129 additions and 7 deletions
|
@ -78,9 +78,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
templates = {
|
templates = {
|
||||||
|
elm = {
|
||||||
|
path = ./templates/elm;
|
||||||
|
description = "Elm Environment";
|
||||||
|
};
|
||||||
haskell = {
|
haskell = {
|
||||||
path = ./templates/haskell;
|
path = ./templates/haskell;
|
||||||
description = "Haskell/Elm Environment";
|
description = "Haskell Environment";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,15 +10,17 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox;
|
package = pkgs.firefox;
|
||||||
profiles = {
|
profiles = {
|
||||||
${user0} =
|
${user0} = let
|
||||||
|
configPath = ./config;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
}
|
}
|
||||||
// (import ./config/bookmarks {inherit flake;})
|
// (import (configPath + /bookmarks) {inherit flake;})
|
||||||
// (import ./config/extensions {inherit nur;})
|
// (import (configPath + /extensions) {inherit nur;})
|
||||||
// (import ./config/search {inherit flake;})
|
// (import (configPath + /search) {inherit flake;})
|
||||||
// (import ./config/settings)
|
// (import (configPath + /settings))
|
||||||
// (import ./config/themes);
|
// (import (configPath + /themes));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
1
templates/elm/.envrc
Normal file
1
templates/elm/.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
1
templates/elm/.gitignore
vendored
Normal file
1
templates/elm/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.direnv
|
57
templates/elm/flake.lock
generated
Normal file
57
templates/elm/flake.lock
generated
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730504689,
|
||||||
|
"narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "506278e768c2a08bec68eb62932193e341f55c90",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "flake-parts",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730785428,
|
||||||
|
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730504152,
|
||||||
|
"narHash": "sha256-lXvH/vOfb4aGYyvFmZK/HlsNsr/0CVWlwYvo2rxJk3s=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/cc2f28000298e1269cea6612cd06ec9979dd5d7f.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/cc2f28000298e1269cea6612cd06ec9979dd5d7f.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
21
templates/elm/flake.nix
Normal file
21
templates/elm/flake.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
description = "Elm Environment";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs @ {
|
||||||
|
flake-parts,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
in
|
||||||
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
|
imports = [
|
||||||
|
./parts
|
||||||
|
];
|
||||||
|
systems = [system];
|
||||||
|
};
|
||||||
|
}
|
13
templates/elm/parts/default.nix
Normal file
13
templates/elm/parts/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
perSystem = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
self',
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./devshells.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
23
templates/elm/parts/devshells.nix
Normal file
23
templates/elm/parts/devshells.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
devShells = {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = builtins.attrValues {
|
||||||
|
inherit
|
||||||
|
(pkgs)
|
||||||
|
alejandra
|
||||||
|
just
|
||||||
|
nil
|
||||||
|
;
|
||||||
|
inherit
|
||||||
|
(pkgs.elmPackages)
|
||||||
|
elm
|
||||||
|
elm-format
|
||||||
|
elm-land
|
||||||
|
elm-language-server
|
||||||
|
elm-review
|
||||||
|
elm-test
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue