Add ci host config
This commit is contained in:
parent
81237e88b0
commit
e2273f2b9f
2 changed files with 33 additions and 0 deletions
8
hosts/ci/configuration.nix
Normal file
8
hosts/ci/configuration.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../shared/base.nix
|
||||||
|
../../shared/hardware/vm.nix
|
||||||
|
../../shared/disko/basic-ext4.nix
|
||||||
|
];
|
||||||
|
}
|
25
hosts/ci/state.nix
Normal file
25
hosts/ci/state.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ lib, modulesPath, ... }:
|
||||||
|
{
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"uhci_hcd"
|
||||||
|
"ehci_pci"
|
||||||
|
"ahci"
|
||||||
|
"virtio_pci"
|
||||||
|
"virtio_scsi"
|
||||||
|
"sd_mod"
|
||||||
|
"sr_mod"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue