feat: moved services over to using the new storage datasets
This commit is contained in:
parent
757a3892e1
commit
c2701ea8f0
23 changed files with 281 additions and 606 deletions
|
|
@ -12,25 +12,13 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.services.tailscale.enable (
|
||||
lib.mkMerge [
|
||||
(lib.mkIf config.storage.zfs.enable (lib.mkMerge [
|
||||
{
|
||||
# Tailscale needs persistent storage for keys and configuration
|
||||
}
|
||||
(lib.mkIf (!config.services.tailscale.impermanence.enable) {
|
||||
# TODO: placeholder to configure a unique dataset for this service
|
||||
})
|
||||
(lib.mkIf config.services.tailscale.impermanence.enable {
|
||||
storage.impermanence.datasets."persist/replicate/system/root" = {
|
||||
directories."${tailscale_data_directory}" = {
|
||||
enable = true;
|
||||
owner.name = "root";
|
||||
group.name = "root";
|
||||
};
|
||||
};
|
||||
})
|
||||
]))
|
||||
]
|
||||
);
|
||||
config = lib.mkIf config.services.tailscale.enable {
|
||||
storage.datasets.replicate."system/root" = {
|
||||
directories."${tailscale_data_directory}" = lib.mkIf config.services.tailscale.impermanence.enable {
|
||||
enable = true;
|
||||
owner.name = "root";
|
||||
group.name = "root";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue