From cdc4042834935a7124c85c7b0599ef51a9628e20 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 18 Aug 2024 07:43:52 -0600 Subject: [PATCH] templates: add various shell templates I commonly use --- templates/go-fyne-shell/.envrc | 1 + templates/go-fyne-shell/shell.nix | 22 ++++++++++++++++++++++ templates/shell/.envrc | 1 + templates/shell/shell.nix | 8 ++++++++ 4 files changed, 32 insertions(+) create mode 100644 templates/go-fyne-shell/.envrc create mode 100644 templates/go-fyne-shell/shell.nix create mode 100644 templates/shell/.envrc create mode 100644 templates/shell/shell.nix diff --git a/templates/go-fyne-shell/.envrc b/templates/go-fyne-shell/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/templates/go-fyne-shell/.envrc @@ -0,0 +1 @@ +use nix diff --git a/templates/go-fyne-shell/shell.nix b/templates/go-fyne-shell/shell.nix new file mode 100644 index 0000000..4934c30 --- /dev/null +++ b/templates/go-fyne-shell/shell.nix @@ -0,0 +1,22 @@ +{ pkgs ? import { } }: +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 + ]; +} diff --git a/templates/shell/.envrc b/templates/shell/.envrc new file mode 100644 index 0000000..4a4726a --- /dev/null +++ b/templates/shell/.envrc @@ -0,0 +1 @@ +use_nix diff --git a/templates/shell/shell.nix b/templates/shell/shell.nix new file mode 100644 index 0000000..ef196b0 --- /dev/null +++ b/templates/shell/shell.nix @@ -0,0 +1,8 @@ +{ pkgs ? import { } }: +pkgs.mkShell { + shellHook = '' + PS1='\u@\h:\w; ' + ''; + buildInputs = with pkgs; [ + ]; +}