feat: rebuit jones to make it be able to be rebooted
This commit is contained in:
parent
35f6d63c10
commit
6ea0240a3a
42 changed files with 124 additions and 121 deletions
|
@ -7,8 +7,6 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
|
||||
# for the secrets
|
||||
inputs.agenix.nixosModules.default
|
||||
|
||||
|
@ -25,6 +23,8 @@
|
|||
../applications/restic.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
# flakes are essensial
|
||||
|
|
|
@ -16,11 +16,9 @@ Notes: Used to have Agent Smith as a partner but it died (Ironically)
|
|||
# name of the server, sets teh hostname and record for it
|
||||
name = "agentjones";
|
||||
ip_pub = "193.1.99.72";
|
||||
ip_priv = "193.1.99.125";
|
||||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
./hardware/_base.nix
|
||||
./hardware/RM001.nix
|
||||
];
|
||||
|
||||
|
@ -55,13 +53,13 @@ in {
|
|||
};
|
||||
|
||||
# keep the wired usb connection alive (front panel)
|
||||
networking.interfaces.enp0s29u1u5u2.useDHCP = true;
|
||||
# networking.interfaces.enp0s29u1u5u2.useDHCP = true;
|
||||
|
||||
networking.hostName = name;
|
||||
# this has to be defined for any physical servers
|
||||
# vms are defined by teh vm host
|
||||
networking.interfaces = {
|
||||
eno2 = {
|
||||
eno1 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = ip_pub;
|
||||
|
@ -69,16 +67,6 @@ in {
|
|||
}
|
||||
];
|
||||
};
|
||||
eno1 = {
|
||||
#useDHCP = false;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
# internal address
|
||||
address = ip_priv;
|
||||
prefixLength = 26;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# this server is teh firewall
|
||||
|
@ -97,7 +85,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
enable = true;
|
||||
enable = false;
|
||||
|
||||
# gonna have to get all the
|
||||
forward = builtins.concatLists (
|
||||
|
|
|
@ -20,6 +20,7 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/nextcloud.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/skynet.ie.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/ulfm.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ Notes:
|
|||
#hostname = ip_pub;
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/email.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ Notes: Each user has roughly 20gb os storage
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/gitlab.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
./_base.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod"];
|
||||
|
@ -18,17 +19,17 @@
|
|||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/9b177e4a-726e-4e68-a0e1-53837a8cae2e";
|
||||
device = "/dev/disk/by-uuid/f7b9d648-735f-44b7-b439-6af601b234a7";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/41AD-70AF";
|
||||
device = "/dev/disk/by-uuid/679E-C352";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/c5990c64-077f-45b1-96b5-44ec93e6651f";}
|
||||
{device = "/dev/disk/by-uuid/b1da9f57-1ed0-4f10-a6c0-6536a0017b2a";}
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
|
@ -38,7 +39,6 @@
|
|||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.eno2.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp0s29u1u1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
./_base.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
./_base.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod"];
|
||||
|
|
|
@ -11,6 +11,10 @@ with lib; let
|
|||
has_ip = interface: (length config.networking.interfaces."${interface}".ipv4.addresses) != 0;
|
||||
in {
|
||||
config = {
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = lists.any has_ip interfaces;
|
||||
|
|
|
@ -21,6 +21,7 @@ Notes:
|
|||
#hostname = ip_pub;
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/ldap/server.nix
|
||||
../applications/discord.nix
|
||||
../applications/bitwarden/vaultwarden.nix
|
||||
|
|
|
@ -20,7 +20,6 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
./hardware/_base.nix
|
||||
./hardware/RM007.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/games.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ Notes: Does not host offical sites
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/skynet_users.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ Notes: Using the server that used to be called Earth
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
./hardware/_base.nix
|
||||
./hardware/RM002.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
];
|
||||
|
||||
deployment = {
|
||||
|
|
|
@ -20,6 +20,7 @@ Notes:
|
|||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../applications/gitlab_runner.nix
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue