53 lines
1.4 KiB
Nix
53 lines
1.4 KiB
Nix
{ config, pkgs, lib, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.homeManager.nixosModules.default
|
|
# inputs.microvm.nixosModules.microvm
|
|
../common-nixos-config.nix
|
|
];
|
|
system.nixos.tags = [ "host-${config.networking.hostName}" ];
|
|
networking.hostName = "devver";
|
|
|
|
# # blegghh, this should all be in triple-dezert config
|
|
# microvm.hypervisor = "qemu";
|
|
# microvm.vcpu = 16;
|
|
# microvm.mem = 1000;
|
|
# microvm.balloonMem = 7000;
|
|
# microvm.interfaces = [{
|
|
# type = "bridge";
|
|
# bridge = inputs.self.nixosConfigurations.triple-dezert.config.vacu.network.lan_bridge;
|
|
# id = "vm-devver";
|
|
# mac = "02:19:07:A2:15:72";
|
|
# }];
|
|
# microvm.shares = [{
|
|
# tag = "root";
|
|
# source = "/trip/devver-vm/root";
|
|
# mountPoint = "/";
|
|
# securityModel = "mapped";
|
|
# proto = "9p";
|
|
# } {
|
|
# source = "/trip/devver-vm/nix-store";
|
|
# mountPoint = "/nix/store";
|
|
# securityModel = "mapped";
|
|
# proto = "9p";
|
|
# }];
|
|
# microvm.storeOnDisk = true;
|
|
boot.loader.external.enable = true;
|
|
boot.loader.external.installHook = pkgs.writeScript "vacuDirectBootInstaller" ''
|
|
#TODO: probably copy kernel/initrd to root
|
|
exit 0
|
|
'';
|
|
|
|
fileSystems.root = {
|
|
fsType = "9p";
|
|
device = "root";
|
|
options = [ "trans=virtio" "msize=104857600" "access=any" "version=9p2000.L" ];
|
|
};
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
services.openssh.enable = true;
|
|
|
|
system.stateVersion = "23.11";
|
|
} |