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;
|
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 = {
|
||||||
|
Reference in New Issue
Block a user