move wsl binfmt configuration to host
apparently a mkIf can't contain a nonexistent option even if it's never gonna be evaluated?
This commit is contained in:
parent
1f8dbf6c32
commit
4e8b112976
@ -7,6 +7,7 @@
|
||||
profile.base.enable = true;
|
||||
binfmt.enable = true;
|
||||
};
|
||||
wsl.interop.register = true;
|
||||
|
||||
networking.networkmanager.enable = false;
|
||||
programs.gnupg.agent = {
|
||||
|
@ -33,10 +33,5 @@ in
|
||||
(lib.mkIf enable {
|
||||
boot.binfmt = {inherit emulatedSystems;};
|
||||
})
|
||||
|
||||
# keep Windows binfmt registration on wsl
|
||||
(lib.mkIf (cfg.enable && lib.hasAttrByPath [ "wsl" "interop" "register" ] options) {
|
||||
wsl.interop.register = lib.mkDefault true;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user