Normalized caenus to configs changes

and updated according to its running config
This commit is contained in:
Chris Toph 2025-01-13 23:40:56 -05:00
parent 6ff47b3403
commit 9e5c6b8292
3 changed files with 79 additions and 38 deletions

View file

@ -1,15 +1,25 @@
{ modulesPath, config, pkgs, hostName, ... }:
{
modulesPath,
config,
pkgs,
hostName,
...
}:
{
## MODULES & IMPORTS ##
imports =
[
# FRP
./modules/frp
# Nginx
./modules/nginx
# Include the results of the hardware scan.
## MODULES & IMPORTS ##
imports = [
# Common Modules
../../common/acme
../../common/ssh
# Import hardware configuration.
./hardware.nix
# Local Modules
./modules/frp
./modules/nginx
];
## BOOTLOADER ##
@ -19,8 +29,14 @@
## NETWORKING ##
networking.firewall = {
allowedTCPPorts = [ 22 80 443 4040 ];
allowedUDPPorts = [ 25565 4040 ];
allowedTCPPorts = [
22
80
443
4040
25565
];
allowedUDPPorts = [ 4040 ];
};
## ENVIORMENT & PACKAGES ##

View file

@ -1,32 +1,48 @@
# 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, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_scsi" ];
## BOOTLOADER ##
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules = [
"xhci_pci"
"virtio_scsi"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/467be3e2-75cb-439f-8255-e1ed3a00c2d8";
fileSystems."/" = {
device = "/dev/disk/by-uuid/467be3e2-75cb-439f-8255-e1ed3a00c2d8";
fsType = "ext4";
};
fileSystems."/storage" =
{ device = "/dev/disk/by-uuid/a3666a64-591c-45ab-8393-3dd1a0a51d79";
fileSystems."/storage" = {
device = "/dev/disk/by-uuid/a3666a64-591c-45ab-8393-3dd1a0a51d79";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E12E-D69C";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E12E-D69C";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];

View file

@ -4,6 +4,7 @@
imports = [
# Common Modules
../../../common/home
../../../common/git
];
home.packages = with pkgs; [
@ -13,4 +14,12 @@
fishPlugins.tide
grc
];
home.file = {
git.dotfiles.source = builtins.fetchGit {
url = "https://github.com/TophC7/dotfiles/tree/hosts";
rev = "adecf063251176159fe9edbe0f6dbba432630de4";
};
};
}