Misterio77 / nix-config

Personal nixos and home-manager configurations.
https://m7.rs/git/nix-config/
MIT License
861 stars 51 forks source link

Do you persist `/etc/nixos`? #20

Closed musjj closed 1 year ago

musjj commented 1 year ago

In ephemeral setups, you're supposed to persist /etc/nixos (or wherever your config is located) somewhere right? I looked through your config:

https://github.com/Misterio77/nix-config/blob/68939a161c97bb875fb1ead17c172c36de24bd01/hosts/common/global/optin-persistence.nix#L11-L20

But I can't find where are you persisting your config directory. Do you even persist it at all?

Caedis commented 1 year ago

If I had to guess, its persisted in their home directory (probably in .config/nixos) and then they use main/deploy.sh to deploy the changes. The script specifies the --flake arg so it is assumed to be in the current directory.

musjj commented 1 year ago

Ah right, that makes sense. I guess he is putting his config in one of his persisted directories.