-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration: impermanence for home & machine state #199
Comments
I am currently experimenting with impermanence along with: {
# load blank root on every boot
boot.initrd.postDeviceCommands = lib.mkAfter ''
zfs rollback -r rpool/local/root@blank
'';
} To allow for an essentially temporary root directory where all state is opt in via So far it's pretty great though. |
For those who want to use impermanence for root and home you can import it as not a flake and use the modules. inputs = {
impermanence = {
url = "github:nix-community/impermanence";
flake = false;
};
};
outputs = {
nixos = {
hostDefaults = {
system = "x86_64-linux";
channelName = "nixos";
modules = ./modules/module-list.nix;
externalModules = [
{ _module.args.ourLib = self.lib; }
home.nixosModules.home-manager
"${inputs.impermanence}/nixos.nix"
./modules/customBuilds.nix
];
};
};
home = {
modules = ./users/modules/module-list.nix;
externalModules = [ "${inputs.impermanence}/home-manager.nix" ];
};
}; I will note that have had issues getting age to work while using impermanence home-manager module. |
I'm doing this as well, just haven't gotten around to making a proper profile for it |
Have you had any issues getting age to work with it? |
@Th3Whit3Wolf Yes, I filed my chronicles on that issue here: You need a nixpkgs with the fix mentioned merged, nixos-unstable should have it now. Not sure if it's been backported to a release yet though (or if it will be). |
Would your feature fix an existing issue?
#180 & #187
Describe the solution you'd like
@ctem #180 (comment)
Describe alternatives you've considered
git lfs
which is probably too git centric and also doesn't solve the problem as generically asimpernanence
does.Additional context
impermananced
we can appropriately stand our implementation here on the shoulder of giantsWant to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: