diff --git a/leanix/configuration.nix b/leanix/configuration.nix index 67382eb..f47f527 100644 --- a/leanix/configuration.nix +++ b/leanix/configuration.nix @@ -61,7 +61,8 @@ }; package = { - docker.enable = true; + docker.enable = false; + podman.enable = true; steam.enable = false; proxychains.enable = false; tor.enable = false; diff --git a/nixos/packages/tools/shell.nix b/nixos/packages/tools/shell.nix index efae2af..a70ed7a 100644 --- a/nixos/packages/tools/shell.nix +++ b/nixos/packages/tools/shell.nix @@ -31,9 +31,9 @@ hist = "history | awk '{for (i=2; i<=NF; i++) printf \$i\" \"; print \"\"}' | fzf | wl-copy"; cdx = "zoxide query --interactive"; - distrobox-enter = "distrobox-enter --root"; - distrobox-create = "distrobox-create --root"; - distrobox-list = "distrobox-list --root"; + #distrobox-enter = "distrobox-enter --root"; + #distrobox-create = "distrobox-create --root"; + #distrobox-list = "distrobox-list --root"; }; bashrcExtra = '' diff --git a/nixos/system/packages.nix b/nixos/system/packages.nix index 5e2bc18..5dce75d 100644 --- a/nixos/system/packages.nix +++ b/nixos/system/packages.nix @@ -1,13 +1,15 @@ {lib, ...}: { imports = [ ./packages/docker.nix + ./packages/podman.nix ./packages/steam.nix ./packages/tor.nix ./packages/virtual-machines.nix ]; package = { - docker.enable = lib.mkDefault true; + docker.enable = lib.mkDefault false; + podman.enable = lib.mkDefault true; steam.enable = lib.mkDefault true; proxychains.enable = lib.mkDefault true; tor.enable = lib.mkDefault true; diff --git a/nixos/system/packages/podman.nix b/nixos/system/packages/podman.nix new file mode 100644 index 0000000..9cfacfb --- /dev/null +++ b/nixos/system/packages/podman.nix @@ -0,0 +1,26 @@ +{ + lib, + config, + username, + ... +}: { + options = { + package.podman.enable = lib.mkEnableOption "Enable Podman"; + }; + + config = lib.mkIf config.package.podman.enable { + virtualisation.containers.enable = true; + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + defaultNetwork.settings.dns_enabled = true; + }; + }; + + users.users.${username} = { + isNormalUser = true; + extraGroups = ["podman"]; + }; + }; +}