fix(shell.nix): add default
This commit is contained in:
parent
89b3445172
commit
6931b12130
1 changed files with 14 additions and 7 deletions
21
shell.nix
21
shell.nix
|
@ -1,10 +1,17 @@
|
||||||
# Shell for bootstrapping flake-enabled nix and home-manager
|
# Shell for bootstrapping flake-enabled nix and other tooling
|
||||||
# You can enter it through 'nix develop' or (legacy) 'nix-shell'
|
{ pkgs ?
|
||||||
|
# If pkgs is not defined, instanciate nixpkgs from locked commit
|
||||||
{ pkgs ? (import ./nixpkgs.nix) { } }: {
|
(import ./nixpkgs.nix) { }
|
||||||
|
, ...
|
||||||
|
}: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
# Enable experimental features without having to specify the argument
|
NIX_CONFIG = ''
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
extra-experimental-features = nix-command flakes repl-flake
|
||||||
nativeBuildInputs = with pkgs; [ nix home-manager git ];
|
'';
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
nix
|
||||||
|
home-manager
|
||||||
|
git
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue