mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2025-09-05 13:26:51 +02:00
I guess i forgot to add networking
This commit is contained in:
parent
f358915432
commit
d022103d82
18 changed files with 528 additions and 77 deletions
29
aliases.nix
Normal file
29
aliases.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{pkgs, ...} : {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nrb = "sudo nixos-rebuild switch --flake /etc/nixos --impure";
|
||||
ni = "nvim /etc/nixos/configuration.nix";
|
||||
bat="upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E 'state|percentage'";
|
||||
gpu="nvidia-smi -q | grep -i 'draw.*W'";
|
||||
wifi="sudo nmtui";
|
||||
all="sudo chmod -R a+rwx ./*";
|
||||
ng="cd /etc/nginx/ && sudo nvim .";
|
||||
copy="xclip -sel clip";
|
||||
pubkey="cat ~/.ssh/id_ed25519.pub | copy";
|
||||
up="docker compose up -d";
|
||||
down="docker compose down";
|
||||
};
|
||||
|
||||
interactiveShellInit = ''
|
||||
function enter
|
||||
if test (count $argv) -lt 1
|
||||
echo "usage: enter <container-name-or-id>"
|
||||
return 1
|
||||
end
|
||||
docker exec -it $argv[1] sh
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue