refactor(nixos): use new persistDirs option and remove environment.persistence where possible

This commit is contained in:
Mohammad Rafiq 2025-06-14 19:59:42 +08:00
parent 16b7f375bd
commit 77d8ed7a13
No known key found for this signature in database
9 changed files with 98 additions and 36 deletions

View file

@ -1,4 +1,7 @@
{ config, lib, ... }:
let
inherit (lib) singleton;
in
{
config = {
networking = {
@ -19,6 +22,6 @@
enable = true;
authKeyFile = config.sops.secrets."keys/tailscale".path;
};
environment.persistence."/persist".directories = [ "/var/lib/tailscale" ];
persistDirs = singleton "/var/lib/tailscale";
};
}