Skip to content

sumitftr/wayconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Install Instructions

nix-shell -p git nushell
git clone https://github.com/sumitftr/wayconfig.git <YOUR_CONFIG_DIRECTORY>/wayconfig
cd <YOUR_CONFIG_DIRECTORY>/wayconfig

Add host by doing:

./host-add <HOSTNAME>
git add .
sudo nixos-rebuild switch --flake .#<HOSTNAME>

Link your configs by doing:

./init.nu

Install Instructions for other distributions

Supported: 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>/wayconfig
cd <YOUR_CONFIG_DIRECTORY>/wayconfig
./distro.sh

This will:

  1. Install the Nix package manager (if not already installed)
  2. Configure Nix with flakes support
  3. Install all development tools from ./modules/dev-tools.nix
  4. Link your configuration files
  5. Change your default shell to nushell

After installation, log out and log back in to use nushell as your default shell.

Note:

For updating package versions you have to update flake.lock file. To do that, run: nix flake update. Then stage the flake.lock file, using git add -u.

Moving Configuration: Copy this flake to your preferred path. Run ./init.nu to 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 .