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:
parent
9683488ef9
commit
40d7ccf048
8 changed files with 37 additions and 52 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
24
host/nocix/amd-legacy-octacore/configuration.nix
Normal file
24
host/nocix/amd-legacy-octacore/configuration.nix
Normal 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";
|
||||
}
|
||||
6
host/nocix/amd-legacy-octacore/default.nix
Normal file
6
host/nocix/amd-legacy-octacore/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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";
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
modulesPath,
|
||||
lib,
|
||||
modulesPath,
|
||||
pkgs,
|
||||
...
|
||||
} @ args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue