mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-24 05:51:46 +02:00
add aliases for nh to zsh
This commit is contained in:
parent
a098fe5f39
commit
fe82bf8656
@ -1,6 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let inherit (import ../../options.nix) flakeDir theShell; in
|
let inherit (import ../../options.nix) flakeDir theShell hostname; in
|
||||||
lib.mkIf (theShell == "zsh") {
|
lib.mkIf (theShell == "zsh") {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -45,8 +45,8 @@ lib.mkIf (theShell == "zsh") {
|
|||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
sv="sudo vim";
|
sv="sudo vim";
|
||||||
flake-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}";
|
flake-rebuild="nh os switch --nom --hostname ${hostname}";
|
||||||
flake-update="sudo nix flake update ${flakeDir}";
|
flake-update="nh os switch --nom --hostname ${hostname} --update";
|
||||||
gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
||||||
v="nvim";
|
v="nvim";
|
||||||
ls="lsd";
|
ls="lsd";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user