From f0eab21bab34beb657059cf5dfe91ca8072edb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 17 Mar 2023 08:12:44 +0100 Subject: pkgs: add shellrc-setup This is intended to be used to setup user environment on system that are not managed by nixos module. --- pkgs.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pkgs.nix b/pkgs.nix index ec5be7f..0f5b6a8 100644 --- a/pkgs.nix +++ b/pkgs.nix @@ -36,7 +36,7 @@ done ''; }; - shellrc-zsh= pkgs.stdenvNoCC.mkDerivation { + shellrc-zsh = pkgs.stdenvNoCC.mkDerivation { name = "shellrc-zsh"; src = ./.; nativeBuildInputs = [pkgs.installShellFiles]; @@ -56,6 +56,21 @@ done ''; }; + shellrc-setup = pkgs.writeScriptBin "shellrc-setup" '' + #!/usr/bin/env bash + cat >~/.bashrc <~/.zshrc <