Skip to content

jbuchermn/dotfiles-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup NixOS

Follow NixOS manual, be sure to setup

  • Networking / Wireless
  • Hostname
  • User and password
  • nix flake
  • (n)vim
  • git

on first setup. Then clone this repo and

  • possibly add entry for hostname adding new folder under system,
  • possibly add entry for user adding new folder under users,
  • check / update hardware-configuration.nix.

Then apply.

Build install medium

See nixos-generators

nix build .#nixosConfigurations.jb-nixos-live.config.formats.[raw|raw-efi|install-iso]

Full update

./update.sh && ./apply-user.sh jonas-nixos [jonas-mbp / ...] && sudo ./apply-system.sh

Notes

  • nix flake show

  • nix repl and :lf .

  • Debug derivations: nix develop --ignore-environment .#derivation.system

  • nix-flake-lock-nixpkgs

  • nix-vim-nixpkgs

Troubleshooting

  • macOS update breaks environment

See this bug

Add

if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi

to /etc/zshrc

  • Alacritty not working properly

Update using brew.

Open

  • Get vaapi running on MacBookPro12,1 (chromium takes an incredible amount of cpu)

  • Get Cirrus CS4208 running on MacBookPro12,1 (no bass)

  • Add home-manager and nixos-options to nix-search

  • Ensure nix shell and setting up a flake initially uses the systems nixpkgs: nix-flake-lock-nixpkgs

  • Fix nix-search format for "nix search" instead of "nix-env -qaP"

  • macho

  • gsync

  • Clean up minimal / default includes

Backlog

  • Reenable newm, add newm-sidecar