ma vbox-guest: init
This commit is contained in:
parent
372d965133
commit
931e25894d
@ -6,9 +6,12 @@
|
|||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
<stockholm/makefu>
|
<stockholm/makefu>
|
||||||
|
|
||||||
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>)
|
<stockholm/makefu/2configs/hw/vbox-guest.nix>
|
||||||
{ ## Guest Extensions are currently broken
|
{ # until virtualbox-image is fixed
|
||||||
virtualisation.virtualbox.guest.enable = lib.mkForce true;
|
imports = [
|
||||||
|
<stockholm/makefu/2configs/fs/single-partition-ext4.nix>
|
||||||
|
];
|
||||||
|
boot.loader.grub.device = "/dev/sda";
|
||||||
}
|
}
|
||||||
<stockholm/makefu/2configs/main-laptop.nix>
|
<stockholm/makefu/2configs/main-laptop.nix>
|
||||||
# <secrets/extra-hosts.nix>
|
# <secrets/extra-hosts.nix>
|
||||||
@ -17,11 +20,6 @@
|
|||||||
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
||||||
|
|
||||||
];
|
];
|
||||||
# workaround for https://github.com/NixOS/nixpkgs/issues/16641
|
|
||||||
services.xserver.videoDrivers = lib.mkOverride 45 [ "virtualbox" "modesetting" ];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# allow sdev to deploy self
|
# allow sdev to deploy self
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
root = {
|
root = {
|
||||||
@ -50,10 +48,5 @@
|
|||||||
8010
|
8010
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/media/share" = {
|
|
||||||
fsType = "vboxsf";
|
|
||||||
device = "share";
|
|
||||||
options = [ "rw" "uid=9001" "gid=9001" "nofail" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,33 +9,8 @@
|
|||||||
imports = [<stockholm/makefu/2configs/fs/single-partition-ext4.nix> ];
|
imports = [<stockholm/makefu/2configs/fs/single-partition-ext4.nix> ];
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
}
|
}
|
||||||
|
<stockholm/makefu/2configs/hw/vbox-guest.nix>
|
||||||
{ ## Virtualbox guest is broken on newer kernel
|
|
||||||
# virtualisation.virtualbox.guest.enable = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
# {
|
|
||||||
# imports = [
|
|
||||||
# <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>
|
|
||||||
# ];
|
|
||||||
# virtualbox.baseImageSize = 35 * 1024;
|
|
||||||
# fileSystems."/media/share" = {
|
|
||||||
# fsType = "vboxsf";
|
|
||||||
# device = "share";
|
|
||||||
# options = [ "rw" "uid=9001" "gid=9001" ];
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
|
|
||||||
# {
|
|
||||||
# imports = [
|
|
||||||
# <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>
|
# <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>
|
||||||
# ];
|
|
||||||
# fileSystems."/nix" = {
|
|
||||||
# device ="/dev/disk/by-label/nixstore";
|
|
||||||
# fsType = "ext4";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
|
||||||
# base gui
|
# base gui
|
||||||
# <stockholm/makefu/2configs/main-laptop.nix>
|
# <stockholm/makefu/2configs/main-laptop.nix>
|
||||||
@ -79,14 +54,8 @@
|
|||||||
];
|
];
|
||||||
networking.extraHosts = import (toString <secrets/extra-hosts.nix>);
|
networking.extraHosts = import (toString <secrets/extra-hosts.nix>);
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# allow vbob to deploy self
|
# allow vbob to deploy self
|
||||||
users.extraUsers = {
|
users.extraUsers.root.openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
|
||||||
root = {
|
|
||||||
openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
forti = "cat ~/vpn/pw.txt | xclip; sudo forticlientsslvpn";
|
forti = "cat ~/vpn/pw.txt | xclip; sudo forticlientsslvpn";
|
||||||
@ -107,7 +76,6 @@
|
|||||||
#devpi-client
|
#devpi-client
|
||||||
ansible
|
ansible
|
||||||
];
|
];
|
||||||
# virtualisation.docker.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
@ -115,6 +83,6 @@
|
|||||||
80
|
80
|
||||||
8010
|
8010
|
||||||
];
|
];
|
||||||
|
# required for qemu
|
||||||
systemd.services."serial-getty@ttyS0".enable = true;
|
systemd.services."serial-getty@ttyS0".enable = true;
|
||||||
}
|
}
|
||||||
|
16
makefu/2configs/hw/vbox-guest.nix
Normal file
16
makefu/2configs/hw/vbox-guest.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ lib, ...}:
|
||||||
|
{
|
||||||
|
## Guest Extensions are currently broken
|
||||||
|
imports = [
|
||||||
|
# (toString <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>)
|
||||||
|
];
|
||||||
|
# virtualisation.virtualbox.guest.enable = true;
|
||||||
|
services.xserver.videoDrivers = lib.mkOverride 45 [ "virtualbox" "modesetting" ];
|
||||||
|
|
||||||
|
fileSystems."/media/share" = {
|
||||||
|
fsType = "vboxsf";
|
||||||
|
device = "share";
|
||||||
|
options = [ "rw" "uid=9001" "gid=9001" "nofail" ];
|
||||||
|
};
|
||||||
|
# virtualbox.baseImageSize = 35 * 1024;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user