Skip to content

Instantly share code, notes, and snippets.

@573
Last active May 16, 2024 18:25
Show Gist options
  • Save 573/c06ccea910abcc8f9255cb8f3ace3e86 to your computer and use it in GitHub Desktop.
Save 573/c06ccea910abcc8f9255cb8f3ace3e86 to your computer and use it in GitHub Desktop.
nix repl for home-manager home.nix config

https://logs.nix.samueldr.com/home-manager/2020-06-24#3652401;

NIX_PATH=nixpkgs=http://nixos.org/channels/nixos-21.05/nixexprs.tar.xz:home-manager=https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz:nix-on-droid=https://github.com/t184256/nix-on-droid/archive/release-21.05.tar.gz nix repl
nix-repl> hm = import <home-manager/modules> { configuration = ~/.config/nixpkgs/home.nix; pkgs = import <nixpkgs> {}; }
~> hm.config.TAB
@573
Copy link
Author

573 commented Jan 4, 2024

Thanks, glad you like it.

The flakes way you described I'd go for nowadays as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment