Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
4861ba8d56 |
@ -7,7 +7,6 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./extraServices
|
||||
./users
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
./podman.nix
|
||||
];
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.extraServices.podman;
|
||||
in {
|
||||
options.extraServices.podman.enable = mkEnableOption "enable podman";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
flags = [
|
||||
"--filter=until=24h"
|
||||
"--filter=label!=important"
|
||||
];
|
||||
};
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
podman-compose
|
||||
];
|
||||
};
|
||||
}
|
@ -33,11 +33,5 @@
|
||||
#:w
|
||||
# networking.hostName = "nixos"; # Define your hostname.
|
||||
{
|
||||
imports = [
|
||||
../common
|
||||
./configuration.nix
|
||||
./services
|
||||
];
|
||||
|
||||
extraServices.podman.enable = true;
|
||||
imports = [../common ./configuration.nix];
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
./echo.nix
|
||||
];
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
{lib, ...}: {
|
||||
virtualisation.oci-containers.containers."echo-http-service" = {
|
||||
image = "hashicorp/http-echo";
|
||||
extraOptions = ["-text='Hello, World!'" "--network=web"];
|
||||
ports = ["5678:5678"];
|
||||
};
|
||||
system.activationScripts.createPodmanNetworkWeb = lib.mkAfter ''
|
||||
if ! /run/current-system/sw/bin/podman network exists web; then
|
||||
/run/current-system/sw/bin/podman network create web
|
||||
fi
|
||||
'';
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
./containers
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user