Add NixOS config
This commit is contained in:
commit
6020d64797
43 changed files with 1372 additions and 0 deletions
23
home-manager/modules/fish.nix
Normal file
23
home-manager/modules/fish.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, pkgs, ... }: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
starship init fish | source
|
||||
'';
|
||||
shellAliases = let flakeDir = "~/nix"; in {
|
||||
rb = "sudo nixos-rebuild switch --flake ${flakeDir}";
|
||||
upg = "sudo nix flake update --flake ${flakeDir} && sudo nixos-rebuild switch --flake ${flakeDir}";
|
||||
hms = "home-manager switch --flake ${flakeDir}";
|
||||
ed = "hx ${flakeDir}";
|
||||
ff = "fastfetch -c neofetch";
|
||||
ls = "lsd";
|
||||
};
|
||||
shellAbbrs = {
|
||||
dcu = "podman-compose up";
|
||||
dcub = "podman-compose up --build";
|
||||
dcd = "podman-compose down";
|
||||
dcdv = "podman-compose down -v";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue