Skip to content
Yash Raj edited this page Sep 30, 2023 · 28 revisions
Welcome to the dotfiles wiki!

🔧 System info

These are my personal ideologies towards using nixos This particular "yuki" configuration contains configuration for related stuff, like X-wm's or DE's whose settings don't interfere with each other. If one has to make config for something like wayland then make another folder for it, and enable it in flake.nix Now you can just switch between these two using home-manager switch

Instead of changing font size or xcursor size use, dpi settings which will help to keep it global, in a way that you can use the same configuration on small screens and large screens.

The modules folder contain stuff related to "installation of wm's or de's", their particular configs will be made in folder of "yuki" if they can exist with same configuration like you can enable picom for both awesomewm and bspwm, those things go to folders like "yuki". The modules folder will do the installation job of wm's and de's, their particular system config, like overlays and stuff, in a way that all configs can be enabled together and it does not affect the other. Ex : Do's - install packages, duplicate packages can be declared, Dont's - enable multiple display manager.

My hardware-configuration file is very universal as it uses variable names for disks so can be used without changing anything. If will only need to change when using very particular hardware that needs some modules and stuff to enabled.

⌨️ Keybinds

hotkeys

Miscellaneous

How to move to a new system?

Update files in hosts/"system name". Eg. "acer", It is my main system so If I have another secondary system I will just make new host like "secsystem" and update flake, If I have to shift to a new main system I will just update the "acer" folder files.

How to nixos rebuild?

sudo nixos-rebuild switch --flake .#hostName

If I have flake.nix file in a seperate directory, say ".setup", then

sudo nixos-rebuild switch --flake .setup#hostName

How to use nix shell to install packages?

nix shell nixpkgs#packageName

How to cleanup nixos

nix-collect-garbage -d
sudo nix-collect-garbage -d

Efficient usage (WIP)

Git PAT

git remote set-url origin https://<TOKEN>@github.com/<USERNAME>/<REPOSITORYNAME>.git

Neofetch bug: wallpaper image not changing.

neofetch --clean

nix develop directly in neovim figsoda/nix-develop

:NixDevelop ~/path_to_flake_config
Clone this wiki locally