Move corp server to using the nocix role pattern

This was introduced for the sync server, but we desire all to receive
it.
This commit is contained in:
Eli Ribble 2025-10-22 18:02:33 +00:00
parent 9683488ef9
commit 40d7ccf048
8 changed files with 37 additions and 52 deletions

View file

@ -42,9 +42,11 @@
system = "x86_64-linux";
in {
nixosConfigurations = {
corp = import ./system.nix {
configuration = ./host/corp/configuration.nix;
roles = [ ./roles/corp.nix ];
"nocix-amd-legacy-octacore" = import ./system.nix {
configuration = ./host/nocix/amd-legacy-octacore;
roles = [
./roles/corp.nix
];
inherit configFiles disko home-manager inputs nixpkgs nixvim sops-nix system timecard-bot;
};
"nocix-amd-legacy-sexcore" = import ./system.nix {

View file

@ -1,47 +0,0 @@
{ config, lib, pkgs, ... }: {
imports = [
./hardware-configuration.nix
./networking.nix # generated at runtime by nixos-infect
];
environment.systemPackages = with pkgs; [
age
fish
git
htop
neovim
podman
postgresql
redis
slirp4netns
tmux
wget
];
services.openssh.enable = true;
services.postgresql.enable = true;
zramSwap.enable = true;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
#system.stateVersion = "23.11";
}

View file

@ -0,0 +1,24 @@
{ lib, modulesPath, pkgs, ... } @ args: {
imports = [
./network.nix
];
environment.systemPackages = with pkgs; [
age
fish
git
htop
neovim
podman
postgresql
redis
slirp4netns
tmux
wget
];
services.openssh.enable = true;
services.postgresql.enable = true;
zramSwap.enable = true;
system.stateVersion = "25.05";
}

View file

@ -0,0 +1,6 @@
{
imports = [
./configuration.nix
./hardware-configuration.nix
];
}

View file

@ -11,7 +11,7 @@
dhcpcd.enable = false;
domain = "gleipnir.technology";
firewall.enable = false;
hostName = "corp";
hostName = "nocix-amd-legacy-octacore";
interfaces.enp2s0 = {
ipv4.addresses = [{
address = "107.150.59.202";

View file

@ -1,6 +1,6 @@
{
modulesPath,
lib,
modulesPath,
pkgs,
...
} @ args: