Skip to content

Commit

Permalink
feat: turn off podman on WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Apr 28, 2024
1 parent 232adff commit 5f8b85f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
19 changes: 17 additions & 2 deletions machines/common/shared/podman.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,4 +15,12 @@
];
pathsToLink = ["/share/qemu"];
};

virtualisation.podman = mkIf isLinux {
enable = true;
extraPackages = with pkgs; [
podman-compose
podman-tui
];
};
}
15 changes: 9 additions & 6 deletions machines/common/wsl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
}

0 comments on commit 5f8b85f

Please sign in to comment.