This is my nix-config for my personal use. It is a work in progress and will be updated as I continue to use it.
- install nix (https://zero-to-nix.com/start/install)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
- clone this repo
- setup keys.txt (for sops-nix)
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
# first time setup
nix run nix-darwin --extra-experimental-features 'nix-command flakes' -- switch --flake .#mac-m1-max
# switch
darwin-rebuild switch --flake .#mac-m1-max
darwin-rebuild --list-generations
darwin-rebuild switch --switch-generation 41
- switch NixOS (TBD)
- test NixOS (TBD)
# useful nix cmds
nix run github:vimjoyer/nix-update-input # upgrade specific input
nix search nixpkgs <package-name> # search nixpkgs
# rebuild system use nix-helper
oswitch # os switch
hswitch # home-manager switch
I am using sops-nix's home-manager module.
nix run nixpkgs#sops -- secrets.yaml # view secrets
more about sops see https://github.com/getsops/sops#2usage
NOTE: most of the changes (like for neovim) are changed on the way while im using it. this list just for later in case I have nothing to do.
- set global packages
- parent path not shown when in git worktree dir
- syntax highlighting error when apply home-manager config
- make it simple with just syntax highlighting
- bat syntax highlighting
- markdown lint
- verify luasnippet is working correctly
- copy sketchybar style to waybar
- create/copy a nvidia module setup
- docker is not working directly downloaded from nixpkgs. seems relate to docker-daemon is not running. right now is using brew to manage it
- aerospace and sketchybar integration not working