58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{ config, pkgs, lib, inputs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.homeManager.nixosModules.default
|
|
../common-nixos-config.nix
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
];
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "virtio_pci" "usbhid" "virtio_blk" "9pnet_virtio" "9p" "autofs4" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" "9pnet_virtio" "9p" "autofs4" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
system.nixos.tags = [ "host-${config.networking.hostName}" ];
|
|
networking.hostName = "devver";
|
|
boot.loader.external.enable = true;
|
|
boot.loader.external.installHook = pkgs.writeShellScript "vacuDirectBootInstaller" ''
|
|
PATH="$PATH:${pkgs.coreutils}/bin:${pkgs.gnused}/bin"
|
|
set -xev
|
|
mkdir -p /boot
|
|
cp $1/kernel /boot/kernel
|
|
cp $1/initrd /boot/initrd
|
|
cp $1/kernel-params /boot/kernel-params
|
|
sed -i "1 s|$| init=$1/sw/bin/init|" /boot/kernel-params
|
|
'';
|
|
|
|
users.users.root.shell = pkgs.bashInteractive;
|
|
|
|
fileSystems."/boot" = {
|
|
fsType = "9p";
|
|
device = "boot";
|
|
options = [
|
|
"trans=virtio"
|
|
"access=any"
|
|
"version=9p2000.L"
|
|
"posixacl"
|
|
"cache=mmap"
|
|
"nofail"
|
|
"noauto"
|
|
];
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/a373835d-b942-4232-85fe-922cb1880af3";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
#boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
services.openssh.enable = true;
|
|
|
|
vacu.packages.nix-inspect.enable = false; #its broken for some reason I don't understand
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|