HNHacker News
TopNewBestAskShowJobs

domenkozar

863 karma · joined July 17, 2019

submissionscomments
domenkozar··on Fast, Declarative, Reproduble and Composable Developer Environments Using Nix
Do you have a particular in mind or does the general number bother you?

It's a very ambitious project, so a lot of issues are related to either Nix or general support for each language/service.

domenkozar··on Difftastic, a structural diff tool that understands syntax
In devenv.sh:

  difftastic.enable = true;
domenkozar··on Devenv 1.0: Rewrite in Rust
Hey folks,

We've shipped a pretty big update this time, incorporating a lot of feedback and issues from the last year.

Here's a 5min demo: https://twitter.com/domenkozar/status/1770444437505929637

Domen

domenkozar··on NixOS: Declarative Builds and Deployments
Better composability and abstraction, see for example how you can configure a process in https://devenv.sh/services/ that has first-class support for development environments using Nix.

No need to use containers too, which bring cognitive/workflow overhead.

domenkozar··on A Modern C Development Environment
That's a mouthful for 14 lines of native development that can generate a dev container using https://devenv.sh

$ cat devenv.nix

{ pkgs, ... }: {

  languages.c.enable = true;

  packages = [ pkgs.ceedling pkgs.cmake ];

  enterShell = ''
    cmake --version
  '';

  pre-commit.hooks = { 
    clang-format.enable = true;
    clang-tidy.enable = true;
  };
}

$ devenv shell

(Note that pkgs.ceedling has been recently added and will only hit the cache in 6-12h).

domenkozar··on Hungary nuclear plant cuts output because of warm Danube waters
Note that warm waters is a typical strawman argument against nuclear power.

These are rare anomalies and there's dry-cooling of nuclear power plants (although it's less efficient and costs more).

domenkozar··on Adventures in building a Go container with Nix
A lot of these pitfalls and boilerplate, we've removed in https://devenv.sh :)
domenkozar··on 20 years of Nix
The best talk I know about this is https://www.youtube.com/watch?v=t6goF1dM3ag
domenkozar··on 20 years of Nix
Do you still experience these UX issues and lack of documentation?
domenkozar··on 20 years of Nix
Hey! We've been working at Cachix to address this using https://devenv.sh/.

It's primary targeted to improve DX and on-board users quickly.

domenkozar··on Cachix 1.3: Uploads unleashed
Hey folks,

Cachix founder here. Here are a few links for getting started:

- https://nix.dev Nix tutorials

- https://devenv.sh Fast, Declarative, Reproducible, and Composable Developer Environments

Let me know if you have any questions. Domen

domenkozar··on Nix-Powered Development with OCaml
If you decide to try https://devenv.sh, it has OCaml support built-in:

  $ cat devenv.nix
  { config, ...}: 
  let
    ocamlPackages = config.languages.ocaml.packages;
  in { 
    languages.ocaml.enable = true;

    packages = [ ocamlPackages.janeStreet.async ];
  }

  $ devenv shell
  ...
Recently also shipped 0.6 with container generation support: https://devenv.sh/containers/

Let me know if you give it a try :)

domenkozar··on Ask HN: What have you built more than twice and wish someone had built for you?
Have you tried https://devenv.sh?
domenkozar··on Devenv: Compose a Developer Environment Easily for PHP with Nix
Hey! Could you elaborate a bit more on what docs are missing?
domenkozar··on Nix and NixOS, my pain points
https://devenv.sh/ covers most of these points as none of the complaints mentioned are design flaws, but they are just something we have yet to reach.
domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
Could you paste the output somewhere?
domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
Specifying language versions is planned.

Versions are locked using devenv.lock and everyone gets the same version.

domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
Did you use the Cachix step?
domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
That's something that still needs to be supported and I'll be working on it next week as part of the https://oceansprint.org
domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
That's the goal of languages.python.enable knob you can turn on.

There are kind of three levels of language support in devenv:

1) Basic tooling + system dependencies, this allows you to use native language package manager and provide system deps to make sure they build.

2) Compiler/interpreter versioning: pick any version of the tooling as you need

3) Full automatic translation of the language tooling into a Nix expressions for the project. This allows you to get all the benefits of what Nix has to offer. This is the most work for each language but the benefits are enormous.

devenv.sh plans to achieve that step by step :)

domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
I used to be a Gentoo user until about 2013: https://domenkozar.com/2013/07/20/9-years-of-linux-distribut...
domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
You're welcome, that tutorial was written by https://github.com/fricklerhandwerk
domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
I've been hacking on VSCode integration as of yesterday, follow https://github.com/cachix/devenv/issues/26 for updates :)

This shouldn't be more than a day of work.

domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
It depends a lot from where you are coming from. It seems like you have prior Nix experience:

The main benefit is abstraction using modules: this allows you to extend, compose and abstract your environment. Processes and pre-commit hooks are only the beginning of what's possible.

There's also higher-level CLI interface for building images, sharing environments, etc.

Note that this is only scratching the design surface of what's possible.

domenkozar··on Devenv.sh: Fast and reproducible developer environments using Nix
Hi all, I'm the author of https://devenv.sh, https://cachix.org and https://nix.dev.

I've been part of the Nix community for more than 10 years and in the last 4 years focused on making it documented, simple and accessible for any developer.

After building Cachix (where you can store any software binaries with a few steps) we realized that there needs to be an intuitive interface for crafting developer environments.

I'm really looking forward what you build on top of devenv. We're only beginning to explore the area of what's possible, so please give as much feedback as you have.

domenkozar··on Hello World: Devenv 0.1
Hi all, I'm the author of https://devenv.sh, https://cachix.org and https://nix.dev.

I've been part of the Nix community for years and in the last 4 years focused on making it documented, simple and accessible for any developer.

After building Cachix (where you can store any software binaries with a few steps) we realized that there needs to be an intuitive interface for crafting developer environments.

I'm really looking forward what you build on top of devenv. We're only beginning to explore the area of what's possible, so please give as much feedback as you have.

Domen

domenkozar··on Show HN: Fast, Declarative, Reproducible, and Composable Developer Environments
Hi all,

I'm the author of https://devenv.sh, https://cachix.org and https://nix.dev.

I've been part of the Nix community for years and in the last 4 years focused on making it documented, simple and accessible for any developer.

After building Cachix (where you can store any software binaries with a few steps) we realized that there needs to be an intuitive interface for crafting developer environments.

I'm really looking forward what you build on top of devenv. We're only beginning to explore the area of what's possible, so please give as much feedback as you have.

Domen

domenkozar··on Nixpacks takes a source directory and produces an OCI compliant image
I've mentioned them at my talk yesterday :)

https://youtu.be/WuWZqSSoLxY

domenkozar··on Finally We May Have a Path to the Fundamental Theory of Physics
Can we wait with the nukes for a few months?

I really want to know how the universe works before we go back to sticks and stones.

domenkozar··on Germany is closing half of its reactors before the end of the year
You probably never heard about Bhopal disaster, one of the world's worst industrial disasters, killing 3787 people.
← PreviousPage 2 of 4Next →