3 ms·
Regarding the example hardwareconfiguration.nix file: why would anyone want to mount a filesystem on a user's home directory as world writable? Maybe it shows m
by acka 3y ago
Regarding the example hardwareconfiguration.nix file: why would anyone want to mount a filesystem on a user's home directory as world writable?
Maybe it shows my age, I know that most people don't run multi-user systems anymore (I do though).
Even so, I would still be quite worried about some runaway process, perhaps running as user nobody for a reason, messing with my stuff.
- n42 3y agoI don't think this is common or acceptable; I think it is just a bad user contribution
- winternewt 3y agoI installed NixOS for the first time a couple of weeks ago. My biggest annoyance has been that most documentation and wiki contributions seem to assume that you're running as a single-user system where it's OK to sudo as root every time you want to change some user settings. For example, I have still not been able to run Sway as a window manager because I can't find how to set it up properly using Home Manager (doing the equivalent with an .xsession and i3 was no problem). The wiki article about it (https://nixos.wiki/wiki/Sway https://nixos.wiki/wiki/Sway) has a lot of configuration at the system level configuration.nix, but most of that is missing from the ostensibly equivalent Home Manager config. It seems like a design error that the Home Manager configuration options do not map 1:1 to the NixOS configuration options for users, and I'm guessing that error is caused by a lack of interest in properly configured multi-user systems.
- e3bc54b2 3y agoFor better or worse, home-manager is developed outside nixpkgs, where rest of NixOS lies. While I cannot speak to the reasons behind the schism, home-manager is better thought of as independent project that builds off of abstractions in nixpkgs, without taking into account what NixOS does.
- drakerossman 3y agoYou may want to read my blog post [1] on that one. It explains exactly how to install Sway with Home Manager. And no, it is not a design error to have Home Manager separated from nixpkgs, and unlike a child reply suggests, there's no "schism", and the reasons for separation are rather prosaic, as explained in another blog post of mine [2]. [1] https://drakerossman.com/blog/wayland-on-nixos-confusion-conquest-triumph https://drakerossman.com/blog/wayland-on-nixos-confusion-con... [2] https://drakerossman.com/blog/how-to-add-home-manager-to-nixos https://drakerossman.com/blog/how-to-add-home-manager-to-nix...
- winternewt 3y agoThanks for the suggestion, unfortunately they didn't help in my situation. I'm trying to start Sway from a graphical display manager and all I get after logging in is an empty text-mode console screen.