Skip to content

sumitpsm/wlconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

182 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Install Instructions

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

Add host by doing:

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

Link your configs by doing:

./init.nu && sudo ./init.nu

Install Instructions for other distributions

Supported: 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>/wlconfig
cd <YOUR_CONFIG_DIRECTORY>/wlconfig

Detects OS and installs the Nix package manager (if not installed)

./nix.sh
exit

Configures 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.sh
exit

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 .