Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Usually you’re on a single-user system anyway though. You should be able to manage all that with your global configuration.nix. You’ll also get the benefit of rollbacks.


Home Manager is nice if you're on non-NixOS, where you don't have a configuration.nix. :)


I use configuration on macos as well, so I'm not sure what you mean?


Yeah, Home Manager is more redundant if you're using Nix-Darwin for a configuration.nix. Non-NixOS Linux doesn't have an equivalent module system to Nix-Darwin, though, so if you want a module system for declarative config there it's Home Manager.


So Nix does not support system level declarative config on Linux except for NixOS? Oh wow, that sucks.


Yeah. It's an unfortunate gap.

There is some work in NixOS-WSL on a special Systemd shim which allows that NixOS instance to work with the WSL-provided Systemd that Microsoft recently added with their 'native' systemd support. I wonder if that can be extended to port NixOS to systems where it doesn't control the whole stack.

Ideally we'll eventually see existing module systems unified with that of NixOS via some kind of process management abstraction framework, and you'll be able to do NixOS-like things in more places with a shared codebase.

Edited to add: there's nothing as simple as NixOS or Nix-Darwin, but you can use Disnix to deploy configured services via Nix on non-NixOS. Not something I'd go for on desktop, but it's there.


I see. Yeah that's a shame.


You can rollback with plain home-manager: https://github.com/nix-community/home-manager/blob/master/do...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: