fixup virt
This commit is contained in:
parent
75e9e63e51
commit
1d10ef75df
10 changed files with 15 additions and 18 deletions
31
hosts/common-vm.nix
Normal file
31
hosts/common-vm.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
boot = {}; # TODO: add kernel modules
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/ROOT";
|
||||
fsType = "ext4";
|
||||
options = [ "discard" "noatime" ];
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-label/BOOT";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" "discard" "noatime" ];
|
||||
};
|
||||
};
|
||||
|
||||
#swapDevices = [{ device = "/dev/disk/by-label/SWAP"; }];
|
||||
|
||||
networking = {
|
||||
domain = "k8s.xengi.de";
|
||||
defaultGateway6 = {
|
||||
address = "2a00:1328:e101:1300::1"; # TODO: use host network
|
||||
interface = "ens3"; # TODO: use correct interface name
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.qemu.guestAgent.enable = true;
|
||||
}
|
||||
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -58,17 +58,12 @@
|
|||
{ device = "/dev/disk/by-uuid/5b53c0b9-ab57-4992-8e81-957e19c7b685"; }
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
useEFIBoot = true;
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
nss.enableGuest = true;
|
||||
startDelay = 1;
|
||||
onShutdown = "shutdown";
|
||||
};
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
nss.enableGuest = true;
|
||||
startDelay = 1;
|
||||
onShutdown = "shutdown";
|
||||
};
|
||||
#rootDevice = "/dev/disk/by-label/nixos";
|
||||
#mountHostNixStore = true;
|
||||
|
||||
services.openssh.banner = ''
|
||||
__ __ __
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../vm.nix
|
||||
../common-vm.nix
|
||||
../../services/openssh.nix
|
||||
../../services/etcd.nix
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue