Normalized caenus to configs changes
and updated according to its running config
This commit is contained in:
parent
6ff47b3403
commit
9e5c6b8292
3 changed files with 79 additions and 38 deletions
|
@ -1,26 +1,42 @@
|
||||||
{ modulesPath, config, pkgs, hostName, ... }:
|
{
|
||||||
|
modulesPath,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
hostName,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
## MODULES & IMPORTS ##
|
## MODULES & IMPORTS ##
|
||||||
|
|
||||||
imports =
|
## MODULES & IMPORTS ##
|
||||||
[
|
imports = [
|
||||||
# FRP
|
# Common Modules
|
||||||
./modules/frp
|
../../common/acme
|
||||||
# Nginx
|
../../common/ssh
|
||||||
./modules/nginx
|
|
||||||
# Include the results of the hardware scan.
|
# Import hardware configuration.
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
];
|
|
||||||
|
# Local Modules
|
||||||
|
./modules/frp
|
||||||
|
./modules/nginx
|
||||||
|
];
|
||||||
|
|
||||||
## BOOTLOADER ##
|
## BOOTLOADER ##
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
## NETWORKING ##
|
## NETWORKING ##
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 22 80 443 4040 ];
|
allowedTCPPorts = [
|
||||||
allowedUDPPorts = [ 25565 4040 ];
|
22
|
||||||
|
80
|
||||||
|
443
|
||||||
|
4040
|
||||||
|
25565
|
||||||
|
];
|
||||||
|
allowedUDPPorts = [ 4040 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
## ENVIORMENT & PACKAGES ##
|
## ENVIORMENT & PACKAGES ##
|
||||||
|
@ -32,7 +48,7 @@
|
||||||
sshfs
|
sshfs
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
HOSTNAME = hostName;
|
HOSTNAME = hostName;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,33 +1,49 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(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.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/467be3e2-75cb-439f-8255-e1ed3a00c2d8";
|
device = "/dev/disk/by-uuid/467be3e2-75cb-439f-8255-e1ed3a00c2d8";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/storage" =
|
fileSystems."/storage" = {
|
||||||
{ device = "/dev/disk/by-uuid/a3666a64-591c-45ab-8393-3dd1a0a51d79";
|
device = "/dev/disk/by-uuid/a3666a64-591c-45ab-8393-3dd1a0a51d79";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/E12E-D69C";
|
device = "/dev/disk/by-uuid/E12E-D69C";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [
|
||||||
};
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,25 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Module imports
|
# Module imports
|
||||||
imports = [
|
imports = [
|
||||||
# Common Modules
|
# Common Modules
|
||||||
../../../common/home
|
../../../common/home
|
||||||
|
../../../common/git
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fastfetch
|
fastfetch
|
||||||
fish
|
fish
|
||||||
fishPlugins.grc
|
fishPlugins.grc
|
||||||
fishPlugins.tide
|
fishPlugins.tide
|
||||||
grc
|
grc
|
||||||
];
|
];
|
||||||
}
|
|
||||||
|
home.file = {
|
||||||
|
git.dotfiles.source = builtins.fetchGit {
|
||||||
|
url = "https://github.com/TophC7/dotfiles/tree/hosts";
|
||||||
|
rev = "adecf063251176159fe9edbe0f6dbba432630de4";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue