diff options
| -rw-r--r-- | home/isolation.nix | 19 | ||||
| -rw-r--r-- | util/importAll.nix | 5 |
2 files changed, 19 insertions, 5 deletions
diff --git a/home/isolation.nix b/home/isolation.nix index cfb6872..276d0d8 100644 --- a/home/isolation.nix +++ b/home/isolation.nix @@ -1,4 +1,19 @@ -{ lib, pkgs, ... }: +{ lib, ... }: with lib; { - home.isolation.enable = true; + home.isolation = { + enable = true; + btrfsSupport = true; + + defaults = { + static = false; + bindHome = "home"; + + persist = { + base = "shenvs"; + btrfs = true; + }; + }; + + modules = import ../util/importAll.nix lib { root = ./shenvs; }; + }; } diff --git a/util/importAll.nix b/util/importAll.nix index 678cf06..8062682 100644 --- a/util/importAll.nix +++ b/util/importAll.nix @@ -11,7 +11,6 @@ let entry = name: _: { name = basename name; - value = import (root + "/${name}"); + value = root + "/${name}"; }; -in - mapAttrs' entry (filterAttrs isMatch (readDir root)) +in mapAttrs' entry (filterAttrs isMatch (readDir root)) |
