Factorise hardware configurations #21

Closed
Niols wants to merge 8 commits from factorise-hardware-config into factorise-users-config
Owner

This PR merges all hardware-related configurations from VMs in infra/ into a infra/common/hardware.nix module. More factorisation will come in subsequent PRs. It builds on top of #20.

It is to be noted that hardware configurations vary between VMs, on mostly between vm02116 on one side and vm02179, vm02186 and vm02187 on the other. Namely:

  • vm02179, vm02186 and vm02187 all have imports = [ (modulesPath + "/profiles/qemu-guest.nix") ] while vm02116 doesn't.

  • vm02116 has to following kernel modules available: ata_piix, uhci_hcd, sr_mod, and xen_blkfront, while vm02179, vm02186 and vm02187 have the following: ata_piix, uhci_hcd, virtio_pci, virtio_scsi, sd_mod, and sr_mod.

  • vm02116 is the only one having: services.xe-guest-utilities.enable = true

I don't know anything about those things so I don't dare taking decisions and cleaning up. For now, all configurations share imports = [ (modulesPath + "/profiles/qemu-guest.nix") ] and all the kernel modules.

This PR merges all hardware-related configurations from VMs in `infra/` into a `infra/common/hardware.nix` module. More factorisation will come in subsequent PRs. It builds on top of #20. It is to be noted that hardware configurations vary between VMs, on mostly between vm02116 on one side and vm02179, vm02186 and vm02187 on the other. Namely: - vm02179, vm02186 and vm02187 all have `imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]` while vm02116 doesn't. - vm02116 has to following kernel modules available: `ata_piix`, `uhci_hcd`, `sr_mod`, and `xen_blkfront`, while vm02179, vm02186 and vm02187 have the following: `ata_piix`, `uhci_hcd`, `virtio_pci`, `virtio_scsi`, `sd_mod`, and `sr_mod`. - vm02116 is the only one having: `services.xe-guest-utilities.enable = true` I don't know anything about those things so I don't dare taking decisions and cleaning up. For now, all configurations share `imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]` and all the kernel modules.
Niols added 4 commits 2024-11-20 17:43:49 +01:00
fricklerhandwerk approved these changes 2024-11-20 23:04:51 +01:00
fricklerhandwerk left a comment
Owner

Makes sense, @koen should check though.

Makes sense, @koen should check though.
Owner

due vm02116 being one of the older fediversity vm's its still running on our old Xen vm environment so its running on completely different hardware

vm02179, vm02186 and vm02187 are allot newer and so they are running on an newer proxmox environment

all 4 vms will have to moved to the fediversity promox in the future

due vm02116 being one of the older fediversity vm's its still running on our old Xen vm environment so its running on completely different hardware vm02179, vm02186 and vm02187 are allot newer and so they are running on an newer proxmox environment all 4 vms will have to moved to the fediversity promox in the future
Niols closed this pull request 2024-11-21 11:54:14 +01:00
Niols referenced this pull request from a commit 2024-11-21 11:58:12 +01:00
Author
Owner

Thank you for your comments. I have kept vm02116's specificities documented in the code.

Thank you for your comments. I have kept vm02116's specificities documented in the code.
Author
Owner

Merged with dd56774f34.

Merged with dd56774f3469b4ea369865d389d9ec855f99cc22.
All checks were successful
/ check-pre-commit (pull_request) Successful in 22s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fediversity/Fediversity#21
No description provided.