dot.nix/hosts/x86/sock/default.nix
Chris Toph 86495b11a7 Replace caddy with newt; add pangolin as a homelab Proxy service
- Add newt service definitions and corresponding nix modules
- Replace caddy configurations across cloud, komo, proxy, and sock hosts with newt
- Implement compose configurations for pangolin in proxy host
- Update adguard naming and systemd service definitions
- Refresh secrets with newt and pangolin credentials
2025-06-14 18:47:31 -04:00

62 lines
1.2 KiB
Nix

###############################################################
#
# Sock - LXC Container
# NixOS container, Intel N150 (4 Cores), 8GB/2GB RAM/SWAP
#
# Docker Environment, Managed by with Komodo
#
###############################################################
{
lib,
config,
pkgs,
...
}:
let
username = "toph";
user = config.secretsSpec.users.${username};
in
{
imports = lib.flatten [
## Sock Only ##
./config
## Hardware ##
./hardware.nix
(map lib.custom.relativeToRoot [
## Required Configs ##
"hosts/global/core"
## Optional Configs ##
"hosts/global/common/docker.nix"
])
];
## Host Specifications ##
hostSpec = {
hostName = "sock";
username = username;
hashedPassword = user.hashedPassword;
email = user.email;
handle = user.handle;
userFullName = user.fullName;
isServer = true;
isMinimal = true;
};
networking = {
enableIPv6 = false;
};
## System-wide packages ##
programs.nix-ld.enable = true;
environment.systemPackages = with pkgs; [
lazydocker
compose2nix
];
# https://wiki.nixos.org/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "25.05";
}