feat: rebuit neuromancer to make it be able to be rebooted
This commit is contained in:
parent
6ea0240a3a
commit
4a95e48179
37 changed files with 109 additions and 104 deletions
|
@ -12,6 +12,7 @@ Notes:
|
|||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
|
@ -13,6 +13,7 @@ Notes:
|
|||
lib,
|
||||
nodes,
|
||||
inputs,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
name = "earth";
|
||||
|
|
|
@ -13,6 +13,7 @@ Notes:
|
|||
lib,
|
||||
nodes,
|
||||
config,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
|
@ -12,6 +12,7 @@ Notes:
|
|||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
|
@ -13,6 +13,7 @@ Notes: Each user has roughly 20gb os storage
|
|||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
./_base.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [];
|
||||
|
|
|
@ -13,23 +13,20 @@
|
|||
./_base.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod"];
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/c48817e1-036f-49a7-adae-f63fc6c03cd5";
|
||||
device = "/dev/disk/by-uuid/a6c96ea1-1e66-4ad3-aef6-dd7131c83530";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/76CE-C65E";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/eced30bd-b785-43e0-a202-cdaee7e0f4f7";}
|
||||
{device = "/dev/disk/by-uuid/5408b486-62ce-45d9-bca5-b458e68ef7f4";}
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
|
|
|
@ -11,10 +11,6 @@ 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;
|
||||
|
|
|
@ -12,6 +12,7 @@ Notes:
|
|||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
|
@ -13,6 +13,7 @@ Notes:
|
|||
lib,
|
||||
nodes,
|
||||
arion,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
|
@ -13,6 +13,7 @@ Notes: Does not host offical sites
|
|||
lib,
|
||||
nodes,
|
||||
inputs,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
name = "skynet";
|
||||
|
|
|
@ -12,6 +12,7 @@ Notes:
|
|||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
name = "vigil";
|
||||
|
|
|
@ -12,6 +12,7 @@ Notes:
|
|||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue