From 6f836a75007c7d41fa549de78769845d7c9c2a7f Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 1 Apr 2026 08:50:57 +0530 Subject: proper aliases --- hardware-configuration.nix | 46 ++++++++++++++++++++++++++++++++++++++++++++++ nixos/home.nix | 31 ++++++++++++------------------- 2 files changed, 58 insertions(+), 19 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index e69de29..019ac6d 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -0,0 +1,46 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/aadeb47f-49f3-4052-b061-6d02fd0165cb"; + fsType = "ext4"; + }; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/111C-A2C4"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/var/lib/docker/overlay2/4644c4a5a2b1c4a0cb4542e69c9532a324f9dba60040695760d0222a1cb161e8/merged" = + { device = "overlay"; + fsType = "overlay"; + }; + + fileSystems."/var/lib/docker/overlay2/9cbb4669695d642dd03b76ef59374502793490f8c64404a1dc1342641742f789/merged" = + { device = "overlay"; + fsType = "overlay"; + }; + + fileSystems."/var/lib/docker/overlay2/b6ee16857d614f1210c4bd29c841ddd901fd7ccdc6b0370045311774611eed47/merged" = + { device = "overlay"; + fsType = "overlay"; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/nixos/home.nix b/nixos/home.nix index 19d8e1b..c148e6d 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -46,36 +46,29 @@ if status is-interactive end end '' else '''') + '' -function tsnode - set filename (basename $argv[1] .ts) - tsc $filename.ts - node $filename.js - rm $filename.js -end - zoxide init --cmd cd fish | source starship init fish | source if test -f ~/.cache/ags/user/generated/terminal/sequences.txt cat ~/.cache/ags/user/generated/terminal/sequences.txt end -alias py=python -alias tmux="tmux -u" -alias snvim="sudo -E -s nvim" -alias ls="eza" -alias l="eza -bghHliS" -alias tree="eza -TL 2" -alias cat="bat" -alias find="fd" -alias cloc="tokei" -alias scrcpy="scrcpy --render-driver=opengl" -alias wisdom="fortune ~/.config/fortune/showerthoughts | cowsay | lolcat" -alias search="rg --color=always --line-number --no-heading \"\" | fzf --ansi --phony --query \"\" --bind \"change:reload(rg --color=always --line-number --no-heading {q} || true)\"" function mkcd mkdir -p $argv[1] cd $argv[1] end ''; + shellAliases = { + py="python"; + tmux="tmux -u"; + snvim="sudo -E -s nvim"; + ls="eza -hli"; + cat="bat"; + find="fd"; + cloc="tokei"; + scrcpy="scrcpy --render-driver=opengl"; + wisdom="fortune ~/.config/fortune/showerthoughts | cowsay | lolcat"; + search="rg --color=always --line-number --no-heading \"\" | fzf --ansi --phony --query \"\" --bind \"change:reload(rg --color=always --line-number --no-heading {q} || true)\""; + }; }; environment.systemPackages = with pkgs; [ nushell -- cgit v1.2.3