move mkdefault
This commit is contained in:
parent
3fce21bef3
commit
fe7b546cda
1 changed files with 4 additions and 4 deletions
|
|
@ -11,13 +11,13 @@
|
||||||
};
|
};
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable=true;
|
enable=true;
|
||||||
shellAliases = (lib.mkDefault {
|
shellAliases = {
|
||||||
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 = lib.mkDefault "sudo nixos-rebuild test --flake $HOME/nixos#default";
|
||||||
update = "sudo nixos-rebuild switch --flake $HOME/nixos#default";
|
update = lib.mkDefault "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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue