feat: turn off podman on WSL

This commit is contained in:
winston 2024-04-28 22:08:04 +02:00
parent 232adff8dc
commit 5f8b85ff66
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 26 additions and 8 deletions

View file

@ -1,5 +1,12 @@
{pkgs, ...}: {
environment = {
{
lib,
pkgs,
...
}: let
inherit (lib) mkIf;
inherit (pkgs.stdenv) isDarwin isLinux;
in {
environment = mkIf isDarwin {
systemPackages = with pkgs; [
podman
podman-compose
@ -8,4 +15,12 @@
];
pathsToLink = ["/share/qemu"];
};
virtualisation.podman = mkIf isLinux {
enable = true;
extraPackages = with pkgs; [
podman-compose
podman-tui
];
};
}

View file

@ -2,16 +2,19 @@
lib,
pkgs,
...
}: {
}: let
inherit (lib) mkForce;
in {
services = {
kanata.enable = lib.mkForce false;
dnsmasq.enable = lib.mkForce false;
mullvad-vpn.enable = lib.mkForce false;
stubby.enable = lib.mkForce false;
kanata.enable = mkForce false;
dnsmasq.enable = mkForce false;
mullvad-vpn.enable = mkForce false;
stubby.enable = mkForce false;
};
virtualisation.podman.enable = mkForce false;
system = {
build.installBootLoader = lib.mkForce "${pkgs.coreutils}/bin/true";
build.installBootLoader = mkForce "${pkgs.coreutils}/bin/true";
stateVersion = "23.11";
};
}