Move folder
This commit is contained in:
32
home/user/shell.nix
Normal file
32
home/user/shell.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
myAliases = {
|
||||
docker-compose = "podman-compose";
|
||||
cat = "bat";
|
||||
ls = "eza --icons=always";
|
||||
fullClean = ''
|
||||
nix-collect-garbage --delete-old
|
||||
|
||||
sudo nix-collect-garbage -d
|
||||
|
||||
sudo /run/current-system/bin/switch-to-configuration boot
|
||||
'';
|
||||
rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/";
|
||||
fullRebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/ && home-manager switch --flake ~/dotfiles/ -b backup";
|
||||
homeRebuild = "home-manager switch --flake ~/.dotfiles/ -b backup";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
# initExtra = ''
|
||||
# eval "${zoxide init --cmd cd zsh)" &&
|
||||
# '';
|
||||
shellAliases = myAliases;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user