sudo mkdir -p /etc/sudoers.d && echo 'taohansen ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/visudo > /dev/null
sudo swupd bundle-add TLP
sudo systemctl enable tlp.service
sudo mkdir -p mkdir /etc/tmpfiles.d
sh <(curl -L https://nixos.org/nix/install) --daemon
sudo mkdir -p /etc/profile.d
sudo cp /etc/bashrc /etc/profile.d/nix
Test that Nix is working:
nix-channel --update
nix-channel --list
nix-shell -p nix-info --run "nix-info -m"
echo 'ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0032", ATTR{power/autosuspend}="-1"' | sudo tee -a /etc/udev/rules.d/50-usb_power_save.rules