initial setup

This commit is contained in:
Vivian 2024-07-07 10:58:58 +02:00
parent 06f6f5f4a6
commit a9207d6844
8 changed files with 58 additions and 82 deletions

View file

@ -1,8 +1,7 @@
# common container config
{ lib, ... }: {
imports = [
# ../../../../common/modules
# home-manager.nixosModules.home-manager # TODO: I don't like this
../../../../common
];
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
networking.useHostResolvConf = lib.mkForce false;

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, inputs, ... }:
let
hostAddress = "10.42.99.1";
hostAddress6 = "fc00::1";
@ -21,13 +21,28 @@ in {
# * fc00:x
containers = {
# dns = {
# autoStart = true;
# inherit hostAddress hostAddress6;
# localAddress = "10.42.99.1";
# localAddress6 = "fc00::2";
#
# config = ./dns.nix;
# };
dns = {
autoStart = true;
inherit hostAddress hostAddress6;
localAddress = "10.42.99.1";
localAddress6 = "fc00::2";
specialArgs = { inherit inputs; };
config = {pkgs, ...}: {
imports = [
./common.nix
inputs.home-manager.nixosModules.home-manager
inputs.gnome-autounlock-keyring.nixosModules.default
inputs.catppuccin.nixosModules.catppuccin
];
services.v.dns = {
enable = true;
openFirewall = true;
mode = "server";
};
};
};
};
}

View file

@ -1,8 +0,0 @@
{ ... }: {
imports = [ ./common.nix ];
services.v.dns = {
enable = true;
openFirewall = true;
mode = "server";
};
}