templates: add various shell templates I commonly use

This commit is contained in:
Aaron Bieber 2024-08-18 07:43:52 -06:00
parent 5fd848053c
commit cdc4042834
No known key found for this signature in database
4 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1 @@
use nix

View File

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
shellHook = ''
export NO_COLOR=true
export PS1="\u@\h:\w; "
'';
nativeBuildInputs = with pkgs.buildPackages; [
alsa-lib
glfw
go
libxkbcommon
pkg-config
wayland
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXrandr
xorg.libXxf86vm
xorg.xinput
];
}

1
templates/shell/.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

View File

@ -0,0 +1,8 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
shellHook = ''
PS1='\u@\h:\w; '
'';
buildInputs = with pkgs; [
];
}