mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-04-08 18:20:48 +00:00
lnl: add <darwinpkgs>
This commit is contained in:
parent
5a081e09ce
commit
7b379f115c
1 changed files with 12 additions and 1 deletions
|
@ -244,7 +244,7 @@
|
|||
}
|
||||
|
||||
:a() {
|
||||
nix repl ''${@:-<nixpkgs>}
|
||||
nix repl ''${@:-<darwinpkgs>}
|
||||
}
|
||||
|
||||
xi() {
|
||||
|
@ -383,6 +383,7 @@
|
|||
[ # Use local nixpkgs checkout instead of channels.
|
||||
"darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix"
|
||||
"darwin=$HOME/.nix-defexpr/darwin"
|
||||
"darwinpkgs=${pkgs.lnl-darwinpkgs}"
|
||||
"nixpkgs=$HOME/.nix-defexpr/nixpkgs"
|
||||
"$HOME/.nix-defexpr/channels"
|
||||
"$HOME/.nix-defexpr"
|
||||
|
@ -403,6 +404,16 @@
|
|||
git "$@" rev-parse origin/master
|
||||
'';
|
||||
|
||||
lnl-darwinpkgs = super.writeTextFile {
|
||||
name = "darwinpkgs";
|
||||
destination = "/default.nix";
|
||||
text = ''
|
||||
{ ... }@args:
|
||||
|
||||
(import <darwin> args).pkgs
|
||||
'';
|
||||
};
|
||||
|
||||
lnl-zsh-completions = super.runCommandNoCC "lnl-zsh-completions-0.0.0"
|
||||
{ preferLocalBuild = true; }
|
||||
''
|
||||
|
|
Loading…
Add table
Reference in a new issue