feat(amy): add ipv6 config, podman, enable coredns

This commit is contained in:
Ashhhleyyy 2024-06-22 09:24:00 +01:00
parent 52746dbed7
commit a6d9603b83
Signed by: ash
GPG key ID: 83B789081A0878FB
3 changed files with 19 additions and 0 deletions

View file

@ -118,6 +118,8 @@
modules = [ modules = [
overlays-module overlays-module
./hosts/amy/configuration.nix ./hosts/amy/configuration.nix
./roles/coredns
./roles/podman.nix
./roles/postgres.nix ./roles/postgres.nix
home-manager-stable.nixosModules.home-manager home-manager-stable.nixosModules.home-manager
{ {

View file

@ -28,5 +28,18 @@
services.openssh.enable = true; services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ]; 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"; system.stateVersion = "23.11";
} }

View file

@ -1,3 +1,7 @@
{ config, pkgs, ...}: { { config, pkgs, ...}: {
virtualisation.podman.enable = true; virtualisation.podman.enable = true;
virtualisation.oci-containers.backend = "podman";
environment.systemPackages = with pkgs; [
podman-compose
];
} }