nix-shell -p git nushellgit clone https://github.com/apeliked/wlconfig.git <YOUR_CONFIG_DIRECTORY>/wlconfigcd <YOUR_CONFIG_DIRECTORY>/wlconfigAdd host by doing:
./host-add <HOSTNAME>git add .sudo nixos-rebuild switch --flake .#<HOSTNAME>Link your configs by doing:
./init.nu && sudo ./init.nuSupported: Ubuntu, Debian, Fedora, Arch, Alpine, openSUSE, FreeBSD, Gentoo, Void, Slackware, Solus, Ximper
First Step: Install git (depends on distribution's package manager)
git clone https://github.com/apeliked/wlconfig.git <YOUR_CONFIG_DIRECTORY>/wlconfigcd <YOUR_CONFIG_DIRECTORY>/wlconfigDetects OS and installs the Nix package manager (if not installed)
./nix.shexitConfigures Nix with flakes support; Installs all development tools from ./modules/development/terminal.nix; Installs and sets up kmonad for keyboard mapping (optional); Links your configuration files; Changes your default shell to nushell;
./setup.shexitFor 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 .