add: shell.nix
This commit is contained in:
parent
4430232787
commit
16c960a1d6
5 changed files with 22 additions and 3 deletions
|
|
@ -31,6 +31,7 @@
|
|||
homeManagerModules = import ./modules/home-manager;
|
||||
|
||||
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
||||
devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
|
||||
|
||||
nixosConfigurations = {
|
||||
# X1 Carbon
|
||||
|
|
|
|||
|
|
@ -45,12 +45,14 @@ in
|
|||
|
||||
programs.bash.initExtra = lib.mkAfter ''
|
||||
export EDITOR="${config.programs.neovim.package}/bin/nvim"
|
||||
'';
|
||||
'';
|
||||
|
||||
programs.zsh.initExtra = lib.mkAfter ''
|
||||
export EDITOR="${config.programs.neovim.package}/bin/nvim"
|
||||
export EDITOR="${config.programs.neovim.package}/bin/nvim"
|
||||
'';
|
||||
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
|
||||
# Required packages -------------------------------------------------------------------------- {{{
|
||||
|
||||
programs.neovim.extraPackages = with pkgs; [
|
||||
|
|
|
|||
8
nixpkgs.nix
Normal file
8
nixpkgs.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# # A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
|
||||
# # This is useful to avoid using channels when using legacy nix commands
|
||||
let lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||
in
|
||||
import (fetchTarball {
|
||||
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
|
||||
sha256 = lock.narHash;
|
||||
})
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs ? (import ../nixpkgs.nix) { } }: {
|
||||
# example = pkgs.callPackage ./example { };
|
||||
|
||||
nvchad = pkgs.callPackage ./nvchad { };
|
||||
|
||||
}
|
||||
|
|
|
|||
7
shell.nix
Normal file
7
shell.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs ? (import ./nixpkgs.nix) { } }: {
|
||||
default = pkgs.mkShell {
|
||||
# Enable experimental features without having to specify the argument
|
||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||
nativeBuildInputs = with pkgs; [ nix home-manager git neovim ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue