Skip to content

Commit

Permalink
Replace pkgs.fetchFromGithub with Flake input
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeanes committed Dec 18, 2024
1 parent 19fdb72 commit 526c310
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
19 changes: 18 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "snowfall-lib/flake-utils-plus/flake-utils";
};

zsh-cd-ls = {
url = "github:zshzoo/cd-ls";
flake = false;
};
};

outputs =
Expand Down
9 changes: 2 additions & 7 deletions modules/home/shells/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
config = {
home.shellAliases = {
Expand Down Expand Up @@ -27,12 +27,7 @@
}
{
name = "cd-ls";
src = pkgs.fetchFromGitHub {
owner = "zshzoo";
repo = "cd-ls";
rev = "main";
sha256 = "QUnZBb0X6F42FcvNxq65zq2oB8cn1Ym4SuU8MXpIfN4=";
};
src = inputs.zsh-cd-ls;
}
];
};
Expand Down

0 comments on commit 526c310

Please sign in to comment.