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 = {