nix-shell -p git nushellgit clone https://github.com/sumitftr/wayconfig.git <YOUR_CONFIG_DIRECTORY>/wayconfigcd <YOUR_CONFIG_DIRECTORY>/wayconfigAdd host by doing:
./host-add <HOSTNAME>git add .sudo nixos-rebuild switch --flake .#<HOSTNAME>Link your configs by doing:
./init.nuSupported: Ubuntu, Debian, Fedora, Arch, openSUSE, FreeBSD, Alpine, Gentoo, Void, Slackware, Solus, Ximper
Install git (depends on which distribution you are)
git clone https://github.com/sumitftr/wayconfig.git <YOUR_CONFIG_DIRECTORY>/wayconfigcd <YOUR_CONFIG_DIRECTORY>/wayconfig./distro.shThis will:
- Install the Nix package manager (if not already installed)
- Configure Nix with flakes support
- Install all development tools from ./modules/dev-tools.nix
- Link your configuration files
- Change your default shell to nushell
After installation, log out and log back in to use nushell as your default shell.
For updating package versions you have to update
flake.lockfile. To do that, run:nix flake update. Then stage theflake.lockfile, usinggit add -u.
Moving Configuration: Copy this flake to your preferred path. Run
./init.nuto recreate symlinks to your present configuration path. You can then delete the original flake.
Sometimes nixos doesn't allows user to rebuild your configuration due to ownership issues. To get around this problem, run:
sudo chown -R <USERNAME>:users .