hosts/artemis: add wine binfmt

This commit is contained in:
2025-07-26 17:02:59 +01:00
parent ccba6d46f2
commit 44ab95d846
2 changed files with 14 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
let
inherit (lib)
getExe
mkForce
;
in
@@ -63,6 +64,11 @@ in
capSysAdmin = true;
};
environment = {
systemPackages = [ pkgs.wine ];
sessionVariables.WINE_BIN = getExe pkgs.wine;
};
modules = {
services = {
borgmatic = {

View File

@@ -8,6 +8,7 @@
let
inherit (lib)
getExe
mkDefault
mkOverride
;
@@ -19,6 +20,13 @@ in
# Inspired by: https://github.com/Jovian-Experiments/Jovian-NixOS
boot = {
binfmt.registrations."DOSWin" = {
wrapInterpreterInShell = false;
interpreter = getExe pkgs.wine;
recognitionType = "magic";
offset = 0;
magicOrExtension = "MZ";
};
initrd = {
availableKernelModules = [
"xhci_pci"