nix/os/devices: add CFB4ED74

This commit is contained in:
steveej 2018-11-12 11:26:22 +01:00
parent cfeabb8e5d
commit c581e5d0a3
5 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{ lib
, ...
}:
{
boot.loader.grub.efiSupport = lib.mkForce false;
# boot.loader.grub.efiInstallAsRemovable = lib.mkForce false;
# boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
boot.extraModulePackages = [ ];
}

View file

@ -0,0 +1,12 @@
{ ... }:
{
imports = [
../../profiles/common/configuration.nix
../../modules/encryptedDisk.nix
./system.nix
./hw.nix
./pkg.nix
];
}

View file

@ -0,0 +1,30 @@
{ ... }:
let
stage1Modules = [
"aesni_intel"
"kvm-intel"
"aes_x86_64"
"virtio_balloon"
"virtio_scsi"
"virtio_net"
"virtio_pci"
"virtio_ring"
"virtio"
"scsi_mod"
];
in
{
# TASK: new device
hardware.encryptedDisk = {
enable = true;
diskId = "scsi-0QEMU_QEMU_HARDDISK_drive-scsi0";
};
boot.initrd.availableKernelModules = stage1Modules;
boot.initrd.kernelModules = stage1Modules;
boot.extraModprobeConfig = ''
'';
}

View file

@ -0,0 +1,7 @@
{
...
}:
{
home-manager.users.steveej = import ../../../home-manager/configuration/graphical-fullblown.nix;
}

View file

@ -0,0 +1,21 @@
{ pkgs
, lib
, ... }:
{
# TASK: new device
networking.hostName = "CFB4ED74"; # Define your hostname.
networking.firewall.enable = lib.mkForce false;
# Kubernetes
# services.kubernetes.roles = ["master" "node"];
# virtualization
virtualisation = {
docker.enable = true;
};
services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true;
}