summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-19 00:36:24 -0700
committerFuwn <[email protected]>2024-09-19 00:36:24 -0700
commit7d7bbe46510ac198802ae3022671e126289d4b34 (patch)
treed6963902395b34499009ee27a37dd30f860dfc52 /hosts
parentnix: add nixbuild.net scaffolding (diff)
downloadnixos-config-7d7bbe46510ac198802ae3022671e126289d4b34.tar.xz
nixos-config-7d7bbe46510ac198802ae3022671e126289d4b34.zip
himeji: add container example
Diffstat (limited to 'hosts')
-rw-r--r--hosts/himeji/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/hosts/himeji/default.nix b/hosts/himeji/default.nix
index 7d3f5a1..0ce7861 100644
--- a/hosts/himeji/default.nix
+++ b/hosts/himeji/default.nix
@@ -23,4 +23,27 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBm/ydlGJiKWMxH6v9SFN3vo/ZkX6eQ+uCmH32gnCkUW"
];
};
+
+ virtualisation = {
+ containers.enable = true;
+ docker.enable = true;
+
+ podman = {
+ enable = false;
+ dockerCompat = true;
+ defaultNetwork.settings.dns_enabled = true;
+ };
+
+ oci-containers = {
+ backend = "docker";
+
+ containers = {
+ september = {
+ image = "fuwn/september";
+ autoStart = true;
+ ports = [ "8084:80" ];
+ };
+ };
+ };
+ };
}