From 3fce21bef35a28d4ce40419d1b27c5aa5b2a8094 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Fri, 15 Mar 2024 21:58:20 +0100 Subject: [PATCH] make zsh aliases default in common --- common/zsh.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/zsh.nix b/common/zsh.nix index db73c8d..84f882f 100644 --- a/common/zsh.nix +++ b/common/zsh.nix @@ -1,4 +1,4 @@ -{ config, pkgs, inputs, ... }: +{ config, lib, pkgs, inputs, ... }: { home.packages = with pkgs; [ @@ -11,13 +11,13 @@ }; programs.zsh = { enable=true; - shellAliases = { + shellAliases = (lib.mkDefault { ll = "lsd -l"; lt = "lsd -l --tree"; # TODO find if i can make these use the 'current' flake utest = "sudo nixos-rebuild test --flake $HOME/nixos#default"; update = "sudo nixos-rebuild switch --flake $HOME/nixos#default"; - }; + }); initExtra = '' nrun() { NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1"