diff options
| author | Fuwn <[email protected]> | 2024-10-28 09:45:16 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-28 09:45:20 -0700 |
| commit | aa205e33bc2b1c94ef5fd0a4fd348d153bf5abc3 (patch) | |
| tree | 4dfdaaf6bd2dbacca58393787ba7c1164baeb357 /modules/core/nix/extended-support.nix | |
| parent | options: distributed builds nix option (diff) | |
| download | nixos-config-aa205e33bc2b1c94ef5fd0a4fd348d153bf5abc3.tar.xz nixos-config-aa205e33bc2b1c94ef5fd0a4fd348d153bf5abc3.zip | |
options: rename nix.extend to nix.extendedSupport
Diffstat (limited to 'modules/core/nix/extended-support.nix')
| -rw-r--r-- | modules/core/nix/extended-support.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/core/nix/extended-support.nix b/modules/core/nix/extended-support.nix new file mode 100644 index 0000000..ac85e6a --- /dev/null +++ b/modules/core/nix/extended-support.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + ... +}: +{ + config = lib.mkIf config.modules.nix.extendedSupport { + programs.nix-index-database.comma.enable = true; + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + + nix.settings = { + extra-platforms = config.boot.binfmt.emulatedSystems; + + extra-sandbox-paths = [ + config.programs.ccache.cacheDir + "/run/binfmt" + "${pkgs.qemu}" + ]; + }; + }; +} |