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
|
|
@ -402,7 +402,7 @@ in {
|
|||
(lib.mkIf config.storage.zfs.enable (lib.mkMerge [
|
||||
{
|
||||
# sops age key needs to be available to pre persist for user generation
|
||||
storage.zfs.datasets."persist/local/system/sops" = {
|
||||
storage.datasets.local."system/sops" = {
|
||||
type = "zfs_fs";
|
||||
mount = {
|
||||
enable = true;
|
||||
|
|
@ -413,9 +413,9 @@ in {
|
|||
};
|
||||
}
|
||||
(lib.mkIf (!config.storage.impermanence.enable) {
|
||||
storage.zfs.datasets = lib.mkMerge (
|
||||
storage.datasets.replicate = lib.mkMerge (
|
||||
builtins.map (user: {
|
||||
"persist/replicate/home/${user.name}" = {
|
||||
"home/${user.name}" = {
|
||||
type = "zfs_fs";
|
||||
mount = {
|
||||
enable = true;
|
||||
|
|
@ -428,9 +428,9 @@ in {
|
|||
);
|
||||
})
|
||||
(lib.mkIf config.storage.impermanence.enable {
|
||||
storage.zfs.datasets = lib.mkMerge (
|
||||
storage.datasets.ephemeral = lib.mkMerge (
|
||||
builtins.map (user: {
|
||||
"ephemeral/home/${user.name}" = {
|
||||
"home/${user.name}" = {
|
||||
type = "zfs_fs";
|
||||
mount = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue