feat: init
This commit is contained in:
commit
8cfede9f57
28 changed files with 2129 additions and 0 deletions
16
hosts/wiki-replica/default.nix
Normal file
16
hosts/wiki-replica/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "wiki-replica";
|
||||
networking.domain = "noisebridge.net";
|
||||
|
||||
networking.useDHCP = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
15
hosts/wiki-replica/hardware-configuration.nix
Normal file
15
hosts/wiki-replica/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Replace with output of `nixos-generate-config --show-hardware-config`
|
||||
# after installing on the actual VPS.
|
||||
{ config, lib, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"virtio_pci"
|
||||
"virtio_scsi"
|
||||
"ahci"
|
||||
"sd_mod"
|
||||
];
|
||||
}
|
||||
21
hosts/wiki/default.nix
Normal file
21
hosts/wiki/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "wiki";
|
||||
networking.domain = "noisebridge.net";
|
||||
|
||||
# VPS typically uses DHCP — override with static IP if needed
|
||||
networking.useDHCP = true;
|
||||
# networking.interfaces.ens3 = {
|
||||
# ipv4.addresses = [{ address = "TODO"; prefixLength = 24; }];
|
||||
# };
|
||||
# networking.defaultGateway = { address = "TODO"; interface = "ens3"; };
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
15
hosts/wiki/hardware-configuration.nix
Normal file
15
hosts/wiki/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Replace with output of `nixos-generate-config --show-hardware-config`
|
||||
# after installing on the actual VPS.
|
||||
{ config, lib, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"virtio_pci"
|
||||
"virtio_scsi"
|
||||
"ahci"
|
||||
"sd_mod"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue