1
0
Fork 0

add new host, add technitium module

This commit is contained in:
Philipp 2025-04-22 09:48:56 +02:00
parent f8312a9447
commit 9aab11df18
Signed by: Philipp
SSH key fingerprint: SHA256:5C5NlogDGXHvoLRASJmU3LXZM8nvKiG3BOZPKWqVxxA
5 changed files with 260 additions and 36 deletions

View file

@ -0,0 +1,52 @@
{
lib,
pkgs,
namespace,
...
}:
with lib.${namespace};
{
imports = [
./hardware-configuration.nix
./networking.nix
];
boot.loader = {
grub.enable = false;
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
users.users.philipp = {
isNormalUser = true;
description = "Philipp Böhm";
extraGroups = [
"wheel"
];
};
awesome-flake = {
services = {
ssh = enabled;
technitium-dns-server = {
enable = true;
openFirewall = true;
};
};
cli = {
neovim = enabled;
eza = enabled;
nh = enabled;
};
};
# Set your time zone
time.timeZone = "Europe/Berlin";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.11";
}

View file

@ -0,0 +1,37 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0cf4622b-0da7-4c05-b603-3b3228b63941";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/F9CE-788D";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -0,0 +1,28 @@
{
networking = {
hostName = "dns-1";
firewall.enable = false;
networkmanager.enable = false;
dhcpcd.enable = false;
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
defaultGateway.address = "192.168.5.1";
interfaces.ens18 = {
ipv4.addresses = [
{
address = "192.168.5.100";
prefixLength = 24;
}
];
ipv6.addresses = [
{
address = "fd00:192:168:5::100";
prefixLength = 64;
}
];
};
};
}