dotfiles/persist.nix

17 lines
629 B
Nix
Raw Normal View History

2025-09-09 20:49:56 +02:00
{ ... }:
{
2025-09-09 18:03:42 +02:00
# machine-id is used by systemd for the journal, if you don't
# persist this file you won't be able to easily use journalctl to
# look at journals for previous boots.
environment.etc."machine-id".source = "/nix/persist/etc/machine-id";
# if you want to run an openssh daemon, you may want to store the
# host keys across reboots.
#
# For this to work you will need to create the directory yourself:
# $ mkdir /nix/persist/etc/ssh
2025-09-09 21:20:12 +02:00
environment.etc."ssh/id_ed25519".source = "/nix/persist/etc/ssh/id_ed25519";
environment.etc."ssh/id_ed25519.pub".source = "/nix/persist/etc/ssh/id_ed25519.pub";
2025-09-09 18:03:42 +02:00
}