Minimal Sway NixOS rice with full silent boot
Install nixos with this guide (make sure to use systemd boot)
https://nixos.org/manual/nixos/stable/
Clone this repository (logged in as user)
cd ~
git clone https://github.com/smravec/nixos-config
Go to nixos/networking/networks.nix
and setup wifi (in the cloned repository)
Copy /etc/nixos/hardware-configuration.nix
to nixos/hardware-optimization
cp /etc/nixos/hardware-configuration.nix ~/nixos-config/nixos/hardware-optimization/
Symlink this repository to /etc
cd /etc
sudo rm -rf nixos
sudo ln -s ~/nixos-config/nixos/ .
Rebuild your system
sudo nixos-rebuild switch
Download home-manager standalone ( after adding the home-manager channel reboot to refresh the $NIX_PATH var )
https://nix-community.github.io/home-manager/index.html#sec-install-standalone
Symlink home-manager
directory to ~/.config
cd ~/.config
rm -rf nixpkgs
ln -s ~/nixos-config/home-manager/ nixpkgs
Add unstable channel
https://nix-community.github.io/home-manager/index.html#_how_do_i_install_packages_from_nixpkgs_unstable
Rebuild home-manager
home-manager switch
Symlink sway config
cd ~/.config
ln -s ~/nixos-config/nixos/wayland/sway/ .
PS: This config is made for the Framework laptop 11th gen