initial commit

This commit is contained in:
2026-07-11 14:56:13 -04:00
commit 26af7b2dcd
15 changed files with 684 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules/network.nix
../../modules/ssh.nix
../../modules/wireguard.nix
../../modules/http-forwarding.nix
];
network.node = "vps";
networking.hostName = "vps";
networking.firewall.allowedTCPPorts = [ 80 443 ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
environment.systemPackages = with pkgs; [
git
wireguard-tools
nftables
vim
];
system.stateVersion = "26.05";
}
+19
View File
@@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
{
boot = {
initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
kernelModules = [ ];
extraModulePackages = [ ];
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
loader.efi.efiSysMountPoint = "/boot";
};
fileSystems."/" = { device = "/dev/vda2"; fsType = "ext4"; };
fileSystems."/boot" = { device = "/dev/vda1"; fsType = "vfat"; };
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.hypervGuest.enable = true;
}