sleroq / nixos-config

Minimalistic Sway rice + NixOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NixOS Config

Minimal Sway NixOS rice with full silent boot

Installation

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

Nixos

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

Home manager

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

Sway

Symlink sway config

cd ~/.config
ln -s ~/nixos-config/nixos/wayland/sway/ .

PS: This config is made for the Framework laptop 11th gen

About

Minimalistic Sway rice + NixOS


Languages

Language:Nix 66.6%Language:Shell 33.4%