Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 2.79 KB

misc.md

File metadata and controls

72 lines (52 loc) · 2.79 KB

Miscellaneous

What I learned while working on this repo

  • If a command in a Dockerfile expects a string as a parameter, it should look like ["bash", "-c" "command" ]

  • Sometimes, Firefox refuses to connect to a Docker container. In this case, one needs to open a new tab

  • VSCodium can't execute a command line nix if there is a dir called nix - src. That's why, I created nix-files directories

  • Environment variables aren't supported by CMD in exec mode - src

  • One can bring any packages from nixpkgs into shell (provided there already is bashInteractive), e.g. nix shell nixpkgs#poetry

  • It's possible to specify a build script for dream2nix's package like this

dream2nix.lib.makeFlakeOutputs {
  systems = [ system ];
  config.projectRoot = ./.;
  source = gitignore.lib.gitignoreSource ./.;
  settings = [
    {
      subsystemInfo.nodejs = 16;
    }
  ];
  packageOverrides = {
    app_purescript = {
      "build" = {
        buildScript = ''
          PATH=${myTools.purs-0_15_4}/bin:$PATH
          ${myTools.spago}/bin/spago bundle-app --to dist/index.js --minify
        '';
      };
    };
  };
  • Interactive diagrams of /nix/store - nix-du

  • can't un-ignore a file if its parent dir is ignored .gitignore - SO

  • Get branch from upstream into fork - src

Stuff I made along the way

TODO

  • Pure Nix builds for:

  • Additional tasks.

    • Docker: remove dangling images - src
    • Lint files
  • desc - use this nix eval

    nix eval nix#checks.x86_64-linux --apply builtins.attrNames
    

Ansible

  • If write 2 roles with vars in a step, they will both run. Example - 2 docker containers
  • If playbooks are in two separate steps, only 1 of them will run