From 0c6ce9596a79d8eff348d9e10b213f7928b7439a Mon Sep 17 00:00:00 2001 From: cswimr Date: Tue, 19 Nov 2024 14:17:29 -0500 Subject: [PATCH] add `create-devenv` and `develop` aliases --- nixos/zsh.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/zsh.nix b/nixos/zsh.nix index e7c7f27..caaa8e4 100755 --- a/nixos/zsh.nix +++ b/nixos/zsh.nix @@ -91,6 +91,8 @@ lsa = "eza -lah ${ezaArgs}"; tree = "eza --tree --git-ignore ${ezaArgs}"; + create-devenv = "nix flake init --template github:cachix/devenv && direnv allow"; + develop = "nix develop --no-pure-eval"; nixrc = "$EDITOR /etc/nixos"; upd = "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch";