From 1074c06e42c816e1fca7cdebd7777c8405eb3576 Mon Sep 17 00:00:00 2001 From: adjoly Date: Tue, 8 Jul 2025 16:20:32 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20issue=20with=20mount=20in=20vm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vm/configuration.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/vm/configuration.nix b/vm/configuration.nix index 29f19d1..7822873 100644 --- a/vm/configuration.nix +++ b/vm/configuration.nix @@ -12,7 +12,13 @@ ]; networking.hostName = hostname; - nixpkgs.config.allowUnfree = true; + nixpkgs.config = { + allowUnfree = true; + }; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; # Since `fileSystems` is ignored by nixos-generators, we need to be creative systemd.services.mount-iot = { @@ -23,7 +29,6 @@ script = '' mkdir -p /iot /run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /iot - ${pkgs.bindfs}/bin/bindfs --map=1000/0:@100/@0 /iot /iot ''; wantedBy = [ "multi-user.target" ]; @@ -38,7 +43,10 @@ users.users.root = { password = "toor"; shell = pkgs.zsh; - extraGroups = [ "wheel" "libvirtd" ]; + extraGroups = [ + "wheel" + "libvirtd" + ]; }; services = {