From a6d9603b83e9fd6bc439fadad44471bd53cb204f Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sat, 22 Jun 2024 09:24:00 +0100 Subject: [PATCH] feat(amy): add ipv6 config, podman, enable coredns --- flake.nix | 2 ++ hosts/amy/configuration.nix | 13 +++++++++++++ roles/podman.nix | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/flake.nix b/flake.nix index fa45ec9..2b83679 100644 --- a/flake.nix +++ b/flake.nix @@ -118,6 +118,8 @@ modules = [ overlays-module ./hosts/amy/configuration.nix + ./roles/coredns + ./roles/podman.nix ./roles/postgres.nix home-manager-stable.nixosModules.home-manager { diff --git a/hosts/amy/configuration.nix b/hosts/amy/configuration.nix index 90c9165..63c958e 100644 --- a/hosts/amy/configuration.nix +++ b/hosts/amy/configuration.nix @@ -28,5 +28,18 @@ services.openssh.enable = true; networking.firewall.allowedTCPPorts = [ 22 ]; + networking = { + interfaces = { + ens18.ipv6.addresses = [{ + address = "2a02:c202:2191:6731:0000:0000:0000:0001"; + prefixLength = 64; + }]; + }; + defaultGateway6 = { + address = "fe80::1"; + interface = "ens18"; + }; + }; + system.stateVersion = "23.11"; } diff --git a/roles/podman.nix b/roles/podman.nix index 9025269..7ecf3b2 100644 --- a/roles/podman.nix +++ b/roles/podman.nix @@ -1,3 +1,7 @@ { config, pkgs, ...}: { virtualisation.podman.enable = true; + virtualisation.oci-containers.backend = "podman"; + environment.systemPackages = with pkgs; [ + podman-compose + ]; }