mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-08-11 20:12:53 +02:00
「🔨」 fix: fixed issue with mount in vm
This commit is contained in:
@ -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 = {
|
||||
|
Reference in New Issue
Block a user