Hard User Separation with NixOS
tweag.io
Hard User Separation with NixOS
1–10 of 27 posts
Re: Hard User Separation with NixOS
#2I plan to use this for testing changes to my boot units.
In theory, plain old generations allow you to safely test changes to boot units, by allowing you to jump to the previous generation. In practice, this involves remembering which generations have known-good boots.
Specialisations will allow me to run a stable and candy track, on per generation.
What other usecases do specialisations improve?
Re: Hard User Separation with NixOS
#3Re: Hard User Separation with NixOS
#4TIL specialisations: https://nixos.wiki/wiki/Specialisation I plan to use this for testing changes to my boot units. In theory, plain old generations allow you to safely test changes to boot units, by allowing you to jump to the previous generation. In practice, this involves remembering which generations have known-good boots. Specialisations will allow me to run a stable and candy track, on per generation. What oth…
In theory I could manage this with git rebasing and/or tagging, but in practice I lose confidence in whether I've accurately tracked.
With specialisations, I'd comfortably commit an experimental change to my canary track, even though it might break, safe in the knowledge that the stable track continues to boot.
Re: Hard User Separation with NixOS
#5This seems really dangerous. Wouldn't running garbage collection on the nix store while in the work partition clean out nix paths required by the home partition's install, and vice versa?
Re: Hard User Separation with NixOS
#6Re: Hard User Separation with NixOS
#7TIL specialisations: https://nixos.wiki/wiki/Specialisation I plan to use this for testing changes to my boot units. In theory, plain old generations allow you to safely test changes to boot units, by allowing you to jump to the previous generation. In practice, this involves remembering which generations have known-good boots. Specialisations will allow me to run a stable and candy track, on per generation. What oth…
Typos:
Specialisations will allow me to run a stable and canary track, one per generation.
Re: Hard User Separation with NixOS
#8You could also use systemd-homed with dm-crypt or cryptfs to have two users with two different encrypted home partitions.
Re: Hard User Separation with NixOS
#9It combined Zones, ZFS filesystems, Crossbow network virtualization, a modified X11 server, and an auth framework to glue it all together.
I don't know how widely Trusted Solaris was ever adopted, but I know that I haven't seen it in use in many years. Maybe this particular NixOS strategy will gain more traction.
Re: Hard User Separation with NixOS
#10TIL specialisations: https://nixos.wiki/wiki/Specialisation I plan to use this for testing changes to my boot units. In theory, plain old generations allow you to safely test changes to boot units, by allowing you to jump to the previous generation. In practice, this involves remembering which generations have known-good boots. Specialisations will allow me to run a stable and candy track, on per generation. What oth…
> Specialisations will allow me to run a stable and candy track, on per generation. Typos: Specialisations will allow me to run a stable and canary track, one per generation.
It's candy for tinkerers.