Skip to content

Instantly share code, notes, and snippets.

@worldofgeese
Last active June 3, 2023 10:35
Show Gist options
  • Save worldofgeese/636f87d5b96927f66eb37334f66f2992 to your computer and use it in GitHub Desktop.
Save worldofgeese/636f87d5b96927f66eb37334f66f2992 to your computer and use it in GitHub Desktop.
Clear Linux on Framework setup

Setup Clear Linux on Framework

Allow user to execute privileged commands without password

sudo mkdir -p /etc/sudoers.d && echo 'taohansen ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/visudo > /dev/null

Enable powersaving

sudo swupd bundle-add TLP 
sudo systemctl enable tlp.service

Install Nix for access to NIx's larger package repository

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"

Turn off Bluetooth autosuspend to keep Bluetooth mouse motion smooth

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment