define bare-bones cookies system
This commit is contained in:
parent
ac06f51765
commit
85081f33af
3 changed files with 31 additions and 2 deletions
|
@ -13,4 +13,4 @@ exec nixos-rebuild $ACTION \
|
|||
--use-remote-sudo \
|
||||
--build-host $HOST \
|
||||
--target-host $HOST \
|
||||
--flake ".#${CONFIG}.noc.eh22.intern"
|
||||
--flake ".#${CONFIG}"
|
||||
|
|
26
systems/cookies.eh22.intern.nix
Normal file
26
systems/cookies.eh22.intern.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
# configure static IP address
|
||||
networking.useDHCP = false;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
"10-eth0" = {
|
||||
matchConfig.MACAddress = "BC:24:11:41:E1:61";
|
||||
address = [ "10.0.0.3/24" ];
|
||||
gateway = [ "10.0.0.1" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# DO NOT CHANGE
|
||||
# this defines the first version of NixOS that was installed on the machine so that programs with non-migratable data files are kept compatible
|
||||
home-manager.users.noc.home.stateVersion = "24.11";
|
||||
system.stateVersion = "24.11";
|
||||
}
|
|
@ -41,11 +41,14 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
# prod hosts
|
||||
# prod hosts (mgmt)
|
||||
"auth-dns.noc.eh22.intern" = mkSystem "x86_64-linux" "auth-dns.noc.eh22.intern";
|
||||
"resolv-dns.noc.eh22.intern" = mkSystem "x86_64-linux" "resolv-dns.noc.eh22.intern";
|
||||
"monitoring.noc.eh22.intern" = mkSystem "x86_64-linux" "monitoring.noc.eh22.intern";
|
||||
|
||||
# prod hosts (public user)
|
||||
"cookies.eh22.intern" = mkSystem "x86_64-linux" "cookies.eh22.intern";
|
||||
|
||||
# staging temp infra
|
||||
"sketchy-router.noc.eh22.intern" = mkSystem "x86_64-linux" "sketchy-router.noc.eh22.intern";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue