aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--external/zsh/aliases/dev.zsh12
-rw-r--r--login.nix9
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() {
diff --git a/login.nix b/login.nix
index df6fac5..8951801 100644
--- a/login.nix
+++ b/login.nix
@@ -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