mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-16 17:27:00 -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,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