nix/os/devices: add CFB4ED74
This commit is contained in:
parent
cfeabb8e5d
commit
c581e5d0a3
5 changed files with 81 additions and 0 deletions
11
nix/os/devices/CFB4ED74/boot.nix
Normal file
11
nix/os/devices/CFB4ED74/boot.nix
Normal 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 = [ ];
|
||||||
|
}
|
12
nix/os/devices/CFB4ED74/configuration.nix
Normal file
12
nix/os/devices/CFB4ED74/configuration.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../profiles/common/configuration.nix
|
||||||
|
../../modules/encryptedDisk.nix
|
||||||
|
|
||||||
|
./system.nix
|
||||||
|
./hw.nix
|
||||||
|
./pkg.nix
|
||||||
|
];
|
||||||
|
}
|
30
nix/os/devices/CFB4ED74/hw.nix
Normal file
30
nix/os/devices/CFB4ED74/hw.nix
Normal 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 = ''
|
||||||
|
'';
|
||||||
|
}
|
7
nix/os/devices/CFB4ED74/pkg.nix
Normal file
7
nix/os/devices/CFB4ED74/pkg.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.steveej = import ../../../home-manager/configuration/graphical-fullblown.nix;
|
||||||
|
}
|
21
nix/os/devices/CFB4ED74/system.nix
Normal file
21
nix/os/devices/CFB4ED74/system.nix
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue