Skip to content

Old dotfiles - I don't use NixOS anymore as my G14 doesn't support recent NixOS releases

Notifications You must be signed in to change notification settings

ajitid/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Harcoded to Zephyrus G14 hardware. configuration.nix mentions # G14 wherever that hardcoding has been made.

High Level Commands

  • hey-init-nixos.sh
  • hey-sync-nix.sh
  • hey-save-space.sh

Setup Your Computer

Install NixOS. I used:

  • 23.05 version as I couldn't make 23.11 and 24.04 to install on my G14
  • ajit as the username

Then run these:

mkdir -p ~/ghq/github.com/ajitid && cd $_
nix-shell -p git
git clone https://github.com/ajitid/dotfiles.git
exit

sudoedit /etc/nixos/configuration.nix
# Add `cachix` into `environment.systemPackages` then save
sudo nixos-rebuild switch

# Upgrade nixos to latest. See https://nixos.org/manual/nixos/stable/#sec-upgrading
# use latest stable channel rather than the mentioned 24.05 here:
sudo nix-channel --add https://channels.nixos.org/nixos-24.05 nixos
sudo nixos-rebuild switch --upgrade
reboot

### nixos stops working upon reboot (stucks at reboot) so the steps below are not what I'd run. nixos-hardware needs latest nixos that's why I had to update it above.

sudoedit /etc/nixos/configuration.nix
# Change `system.stateVersion` to the the lastest version then save
sudo nixos-rebuild switch
reboot

cd dotfiles/scripts
./hey-init-nixos.sh
./pvt/hey-update-nix.sh
./pvt/hey-apply-nixos.sh
reboot
asusctl -c 80 # limit battery to 80%, doesn't need reboot to apply itself
./pvt/hey-apply-home-manager.sh
# logout and log back in
# change ~/ghq/github.com/ajitid/dotfiles Git origin from HTTPS to SSH
# enable gnome extensions and manually install astra-monitor
# configure keyboard shortcuts and extensions config
# Open chrome://flags/ → Preferred Ozone platform, choose Wayland
#
# You may need to increase watchers: https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
# ^ modify this https://github.com/euank/nixpkgs/commit/835749939f86f623bbc7d16b27c144e4b42789b8
    to use 'max_user_watches' instead of 'max_user_instances' or just follow VS Code instructions direclty
#   Again, you may actually not need to do this because of https://github.com/NixOS/nixpkgs/issues/36214#issuecomment-860249879
#   ^ If this is actually the case then remove the comment

Additional Notes

Rest of the low-level commands can be executed by cd-ing into <dotfiles-path>/scripts/pvt and then running ./<script-name>.sh.

Note

Trim generations script (wiki, gist) is not supposed to be run directly, rather use hey-save-space.sh

If you add new scripts, do chmod u+x scripts/*.sh.

To Do

Look into:

Other stuff to automate:

Hibernation stuff:

https://discourse.nixos.org/t/hybrid-sleep-not-working-suspend-hibernation-works/17492
^ I see the same thing. And because I'm using zram, systemctl hibernate won't work.
The instructions to properly set-up hibernate is here: https://www.worldofbs.com/nixos-framework/#setting-up-hibernate

About

Old dotfiles - I don't use NixOS anymore as my G14 doesn't support recent NixOS releases

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published