basic exteral system module
This commit is contained in:
61
default.nix
Normal file
61
default.nix
Normal file
@@ -0,0 +1,61 @@
|
||||
{ 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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user