🔨」 fix: fixed issue with mount in vm

This commit is contained in:
2025-07-08 16:20:32 +02:00
parent 045cb6764b
commit 1074c06e42

View File

@ -12,7 +12,13 @@
]; ];
networking.hostName = hostname; 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 # Since `fileSystems` is ignored by nixos-generators, we need to be creative
systemd.services.mount-iot = { systemd.services.mount-iot = {
@ -23,7 +29,6 @@
script = '' script = ''
mkdir -p /iot mkdir -p /iot
/run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /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" ]; wantedBy = [ "multi-user.target" ];
@ -38,7 +43,10 @@
users.users.root = { users.users.root = {
password = "toor"; password = "toor";
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "wheel" "libvirtd" ]; extraGroups = [
"wheel"
"libvirtd"
];
}; };
services = { services = {