added reading of cards from data for template started migrating configs to all nix
This commit is contained in:
parent
25f70e849b
commit
60f28672d3
15 changed files with 646 additions and 46 deletions
11
.config/nix/.gitignore.nix
Normal file
11
.config/nix/.gitignore.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs }:
|
||||
|
||||
let
|
||||
createDotGitignore = content: pkgs.writeText ".gitignore" content;
|
||||
in
|
||||
createDotGitignore ''
|
||||
/target
|
||||
/node_modules
|
||||
.direnv
|
||||
result
|
||||
''
|
||||
13
.config/nix/.npmrc.nix
Normal file
13
.config/nix/.npmrc.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ nixago }:
|
||||
|
||||
let
|
||||
data = {
|
||||
modules-dir = "project_dependencies/node/";
|
||||
};
|
||||
in
|
||||
nixago.lib.make {
|
||||
inherit data;
|
||||
output = ".npmrc";
|
||||
format = "ini"; # Optional if it matches the file extension
|
||||
engine = nixago.engines.nix { }; # Optional as this is the default engine
|
||||
}
|
||||
51
.config/nix/Cargo.nix
Normal file
51
.config/nix/Cargo.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{nixago}:
|
||||
|
||||
let
|
||||
data = {
|
||||
package = {
|
||||
name = "sk_tcg_trader";
|
||||
version = "0.1.0";
|
||||
edition = "2021";
|
||||
};
|
||||
dependencies = {
|
||||
axum = "0.6.19";
|
||||
chrono = "0.4.26";
|
||||
dotenv = "0.15.0";
|
||||
hyper = "0.14.27";
|
||||
indicatif = "0.17.5";
|
||||
lazy_static = "1.4.0";
|
||||
prometheus = "0.13.3";
|
||||
reqwest = {
|
||||
version = "0.11.18";
|
||||
features = ["json"];
|
||||
};
|
||||
serde = {
|
||||
version = "1.0.178";
|
||||
features = ["derive"];
|
||||
};
|
||||
serde_json = "1.0.104";
|
||||
tokio = {
|
||||
version = "1.29.1";
|
||||
features = ["full"];
|
||||
};
|
||||
anyhow = "1.0.72";
|
||||
askama = "0.12.0";
|
||||
tower = "0.4.13";
|
||||
tower-http = {
|
||||
version = "0.4.3";
|
||||
features = ["fs"];
|
||||
};
|
||||
tracing = "0.1.37";
|
||||
tracing-subscriber = {
|
||||
version = "0.3.17";
|
||||
features = ["env-filter"];
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
nixago.lib.make {
|
||||
inherit data;
|
||||
output = "Cargo.toml";
|
||||
format = "toml"; # Optional if it matches the file extension
|
||||
engine = nixago.engines.nix { }; # Optional as this is the default engine
|
||||
}
|
||||
9
.config/nix/env.nix
Normal file
9
.config/nix/env.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ pkgs }:
|
||||
|
||||
let
|
||||
toEnvFile = attrs: pkgs.writeText "myenvfile.env" (nixpkgs.lib.generators.toKeyValue {} attrs);
|
||||
in
|
||||
toEnvFile {
|
||||
UPDATE_INTERVAL = "12";
|
||||
PORT = "8080";
|
||||
}
|
||||
17
.config/nix/package.nix
Normal file
17
.config/nix/package.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ nixago }:
|
||||
|
||||
let
|
||||
data = {
|
||||
devDependencies = {
|
||||
prettier = "^3.0.1";
|
||||
prettier-plugin-tailwindcss = "^0.4.1";
|
||||
tailwindcss = "^3.3.3";
|
||||
};
|
||||
};
|
||||
in
|
||||
nixago.lib.make {
|
||||
inherit data;
|
||||
output = "package.json";
|
||||
format = "json"; # Optional if it matches the file extension
|
||||
engine = nixago.engines.nix { }; # Optional as this is the default engine
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue