make zsh aliases default in common

This commit is contained in:
Noa Aarts 2024-03-15 21:58:20 +01:00
parent af592442d8
commit 3fce21bef3

View file

@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }: { config, lib, pkgs, inputs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -11,13 +11,13 @@
}; };
programs.zsh = { programs.zsh = {
enable=true; enable=true;
shellAliases = { shellAliases = (lib.mkDefault {
ll = "lsd -l"; ll = "lsd -l";
lt = "lsd -l --tree"; lt = "lsd -l --tree";
# TODO find if i can make these use the 'current' flake # TODO find if i can make these use the 'current' flake
utest = "sudo nixos-rebuild test --flake $HOME/nixos#default"; utest = "sudo nixos-rebuild test --flake $HOME/nixos#default";
update = "sudo nixos-rebuild switch --flake $HOME/nixos#default"; update = "sudo nixos-rebuild switch --flake $HOME/nixos#default";
}; });
initExtra = '' initExtra = ''
nrun() { nrun() {
NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1" NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1"