Add NixOS config

This commit is contained in:
Zeph Levy 2025-11-11 16:09:55 +01:00
commit 6020d64797
43 changed files with 1372 additions and 0 deletions

View 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";
};
};
}