nixosref.txt 648 B

123456789101112131415161718192021222324
  1. # docker image
  2. https://nixos.org/manual/nixos/stable/index.html#sec-user-management
  3. https://hub.docker.com/r/nixos/nix
  4. https://nixos.wiki/wiki/Cheatsheet
  5. https://nixos.org/download.html#nix-install-docker
  6. https://matthewrhone.dev/nixos-package-guide
  7. docker pull nixos/nix
  8. docker run -it nixos/nix
  9. # list of installed packages
  10. nix-env --query --installed
  11. # install a package
  12. nix-env -i <package-name>
  13. # create nixos configuration file
  14. /etc/nixos/configuration.nix
  15. nix-env -i nixos-rebuild
  16. nixos-rebuild switch
  17. Nix configuration
  18. https://stackoverflow.com/questions/43169279/where-is-the-nix-configuration-located-for-the-nix-image-on-dockerhub