4 ms·
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 r
by smasher164 4y ago
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.
- pxc 4y agoHome Manager is nice if you're on non-NixOS, where you don't have a configuration.nix. :)
- smasher164 4y agoI use configuration on macos as well, so I'm not sure what you mean?
- pxc 4y agoYeah, 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.
- smasher164 4y agoI see. Yeah that's a shame.
- eterps 4y agoSo Nix does not support system level declarative config on Linux except for NixOS? Oh wow, that sucks.
- pxc 4y agoYeah. 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.
- licebmi__at__ 4y agoYou can rollback with plain home-manager: https://github.com/nix-community/home-manager/blob/master/docs/usage.adoc#rollbacks https://github.com/nix-community/home-manager/blob/master/do...