diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-23 20:39:02 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-23 20:39:15 +0530 |
| commit | d4289976768c72d347ff2bdcf3062a8a2eb29fbb (patch) | |
| tree | f715f258fc6fbcf54d898aa91c9d5eb704c95e0a | |
| parent | 27496a4209360148a966bd5633923a4d91ae3e14 (diff) | |
| download | nixos-config-d4289976768c72d347ff2bdcf3062a8a2eb29fbb.tar.gz nixos-config-d4289976768c72d347ff2bdcf3062a8a2eb29fbb.zip | |
nix helper aliases
Diffstat (limited to '')
| -rw-r--r-- | external/zsh/aliases/dev.zsh | 12 | ||||
| -rw-r--r-- | login.nix | 9 |
2 files changed, 15 insertions, 6 deletions
diff --git a/external/zsh/aliases/dev.zsh b/external/zsh/aliases/dev.zsh index 9128777..1e6587f 100644 --- a/external/zsh/aliases/dev.zsh +++ b/external/zsh/aliases/dev.zsh @@ -1,11 +1,17 @@ alias aws="docker run --rm -it amazon/aws-cli" -nrx() { nix-shell -p nodejs-14_x --run "npm run $1"; } +# nix shell with zsh +nix-zsh() { nix-shell --run "WITH_NIX_PREFIX='${NX_PREFIX:-':'}' zsh" "$@"; } -with_node_14() { nix-shell -p nodejs-14_x --run 'WITH_NIX_PREFIX="node14" zsh'; } +# shell for node 14 +with_node_14() { NX_PREFIX="node14" nix-zsh -p nodejs-14_x "$@"; } -nix-zshell() { nix-shell --run 'WITH_NIX_PREFIX=":" zsh' "$@"; } +# shell for docker-compose +with_dcomp() { TMPDIR=$HOME/dump/tempdir NX_PREFIX=docker-compose nix-zsh -p docker-compose; } + +# npm run for node_14 +nrx() { with_node_14 --run "npm run $*"; } # :: Filename Pattern Replacetext far() { @@ -2,7 +2,7 @@ let sessions = [ ["tty1" windowManagers.dwm ] - ["tty2" windowManagers.bspwm ] + ["tty2" windowManagers.browser ] ]; windowManagers = { dwm = '' @@ -10,8 +10,8 @@ let (ssh-agent dwm &>> /tmp/dwm.log) || break; done ''; - # TODO - bspwm = '' + # TODO: Bspwm + browser = '' exec firefox; ''; }; @@ -31,6 +31,9 @@ in { ]; shell = pkgs.zsh; }; + #security.sudo.configFile = '' + # %wheel ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown + #''; # Global environment.variables = let |
