62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{ inputs, ... }:
|
|
|
|
# ============================================================================
|
|
# USDA Dashboard External System Module
|
|
# ============================================================================
|
|
# External system configuration for usda-dash
|
|
# This module can be referenced from nixos-systems/inventory.nix using:
|
|
#
|
|
# nix-lxc = {
|
|
# devices = {
|
|
# "usda-dash" = builtins.fetchGit {
|
|
# url = "https://github.com/UGA-Innovation-Factory/usda-dash-config";
|
|
# rev = "commit-hash";
|
|
# };
|
|
# };
|
|
# };
|
|
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
# ========== Module Configuration ==========
|
|
config = {
|
|
# System packages specific to usda-dash
|
|
environment.systemPackages = with pkgs; [
|
|
# Add any dashboard-specific tools here
|
|
git
|
|
vim
|
|
htop
|
|
curl
|
|
wget
|
|
];
|
|
|
|
# Enable SSH for remote access
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = false;
|
|
};
|
|
};
|
|
|
|
# Configure users (these will be added via inventory.nix extraUsers)
|
|
# ugaif.users.sv22900.enable = true;
|
|
# ugaif.users.hdh20267.enable = true;
|
|
|
|
# Dashboard-specific services could go here
|
|
# Example:
|
|
# services.nginx.enable = true;
|
|
# services.postgresql.enable = true;
|
|
|
|
# Firewall configuration
|
|
# networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
# Any other usda-dash specific configuration
|
|
};
|
|
}
|