mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-10 06:23:04 -04:00
refactor custom packages to be a module
This commit is contained in:
parent
c73e0afd18
commit
aa209a91b9
5 changed files with 71 additions and 54 deletions
|
@ -1,23 +1,29 @@
|
|||
{pkgs, unstable, ...}: {
|
||||
imports = [
|
||||
../prisma.nix
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
lemminx
|
||||
deno
|
||||
eslint_d
|
||||
vscode-langservers-extracted
|
||||
nodePackages_latest.typescript-language-server
|
||||
typescript
|
||||
unstable.eslint
|
||||
corepack_22
|
||||
nodejs_22
|
||||
] ++ (with pkgs.nodePackages; [
|
||||
nodemon
|
||||
ts-node
|
||||
pnpm
|
||||
live-server
|
||||
]);
|
||||
{ pkgs, unstable, ... }: {
|
||||
imports = [
|
||||
../prisma.nix
|
||||
../../../../customPackages
|
||||
];
|
||||
home = {
|
||||
shellAliases = {
|
||||
pd = "/home/meyer/dev/ts/pnpm/pnpm/dev/pd.js";
|
||||
};
|
||||
packages = with pkgs;
|
||||
[
|
||||
cpkg.chrome-pak-customizer
|
||||
lemminx
|
||||
deno
|
||||
eslint_d
|
||||
vscode-langservers-extracted
|
||||
nodePackages_latest.typescript-language-server
|
||||
typescript
|
||||
unstable.eslint
|
||||
corepack_22
|
||||
nodejs_22
|
||||
] ++ (with pkgs.nodePackages; [
|
||||
nodemon
|
||||
ts-node
|
||||
pnpm
|
||||
live-server
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{pkgs, inputs, ...}:
|
||||
let
|
||||
cpkg = import ../../../customPackages { inherit pkgs inputs; };
|
||||
in
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = [
|
||||
cpkg.frog
|
||||
];
|
||||
};
|
||||
}
|
||||
imports = [
|
||||
../../../customPackages
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs.cpkg;[
|
||||
frog
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, lib, inputs, ...}:
|
||||
let
|
||||
cpkg = import ../../../../customPackages { inherit pkgs inputs; };
|
||||
# cpkg = import ../../../../customPackages { inherit pkgs inputs; };
|
||||
# https://discourse.nixos.org/t/how-to-create-a-script-with-dependencies/7970/6
|
||||
mkScript = { name, version ? "0.0.1", file, env ? [ ] }:
|
||||
pkgs.writeTextFile {
|
||||
|
@ -17,6 +17,9 @@ mkScript = { name, version ? "0.0.1", file, env ? [ ] }:
|
|||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../../../../customPackages
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
# env for clipboard command will be required by their respective environemnts
|
||||
|
@ -54,9 +57,9 @@ in
|
|||
];
|
||||
file = {
|
||||
scripts = {
|
||||
source = "${cpkg.scripts}";
|
||||
source = "${pkgs.cpkg.scripts}";
|
||||
target = ".scripts";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue