[dev] Sets up podman as a system package instead of homemanager.
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Use podman over docker
|
# Podman is enabled at the system level.
|
||||||
services.podman = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
podman-compose
|
podman-compose
|
||||||
|
|||||||
14
system/features/podman-dev.nix
Normal file
14
system/features/podman-dev.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
virtualisation = {
|
||||||
|
podman = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||||
|
dockerCompat = true;
|
||||||
|
|
||||||
|
# Required for containers under podman-compose to be able to talk to each other.
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./qmk.nix
|
./qmk.nix
|
||||||
|
../../features/podman-dev.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "altair"; # Define your hostname.
|
networking.hostName = "altair"; # Define your hostname.
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
../../features/podman-dev.nix
|
||||||
|
];
|
||||||
|
|
||||||
networking.hostName = "vega"; # Define your hostname.
|
networking.hostName = "vega"; # Define your hostname.
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
|
|||||||
Reference in New Issue
Block a user