Rearrange podman items

This commit is contained in:
albert 2024-03-14 09:53:52 +09:00
parent 2cc8f7539c
commit 623b0dc33c
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
5 changed files with 11 additions and 55 deletions

View file

@ -23,4 +23,8 @@
podman-tui
inputs.compose2nix.packages.${system}.default
];
# Add the docker telegraf listener
services.telegraf.extraConfig.inputs.podman = {};
users.users.telegraf.extraGroups = [ "docker" ];
}

View file

@ -1,10 +1,11 @@
{ config, lib, pkgs, modulesPath, hostname, username, ... }: {
{ lib, modulesPath, ... }: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
../../common/services/tailscale-autoconnect.nix
../../common/services/podman.nix
./firewall.nix
./wireguard.nix
./podman.nix
./podman/derp.nix
];
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];

View file

@ -1,25 +0,0 @@
{ lib, pkgs, ... }: {
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
# Required for container networking to be able to use names.
dns_enabled = true;
};
};
virtualisation.oci-containers.backend = "podman";
# Containers
imports = [
./podman/derp.nix
];
environment.systemPackages = [ pkgs.ctop ];
# Add the docker telegraf listener
services.telegraf.extraConfig.inputs.docker = {};
users.users.telegraf.extraGroups = [ "docker" ];
}

View file

@ -1,9 +1,10 @@
{ inputs, config, lib, pkgs, modulesPath, hostname, ... }: {
{ lib, pkgs, modulesPath, ... }: {
imports = [
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
(modulesPath + "/installer/scan/not-detected.nix")
../../common/services/tailscale-autoconnect.nix
./podman.nix
../../common/services/podman.nix
./podman/piaware.nix
];
# Enable distributed Builds
nix.distributedBuilds = true;

View file

@ -1,25 +0,0 @@
{ lib, pkgs, ... }: {
# Runtime
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
# Required for container networking to be able to use names.
dns_enabled = true;
};
};
virtualisation.oci-containers.backend = "podman";
# Containers
imports = [
./podman/piaware.nix
];
environment.systemPackages = [ pkgs.ctop ];
# Add the docker telegraf listener
services.telegraf.extraConfig.inputs.docker = {};
users.users.telegraf.extraGroups = [ "docker" ];
}