feat: get to a solid bootstrap on public ssh
This commit is contained in:
parent
642869ce9b
commit
3850948f71
27 changed files with 262 additions and 865 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ hostMeta, siteConfig, ... }:
|
||||
{
|
||||
imports = [
|
||||
../shared/hardware-configuration.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking.hostName = hostMeta.nixosName;
|
||||
|
|
@ -4,8 +4,11 @@
|
|||
(modulesPath + "/virtualisation/digital-ocean-config.nix")
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = false;
|
||||
devices = lib.mkForce [ "/dev/vda" ];
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = lib.mkDefault "/dev/disk/by-label/nixos";
|
||||
6
hosts/main-wiki.nix
Normal file
6
hosts/main-wiki.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
}
|
||||
6
hosts/replica-wiki.nix
Normal file
6
hosts/replica-wiki.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
{ hostMeta, siteConfig, ... }:
|
||||
{
|
||||
imports = [
|
||||
../shared/hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking.hostName = hostMeta.nixosName;
|
||||
networking.domain = siteConfig.baseDomain;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue