proxmox w/o networking

This commit is contained in:
xqtc 2024-08-23 17:42:21 +02:00
parent 70964abf96
commit 17bdbab682
3 changed files with 29 additions and 2 deletions

View file

@ -47,6 +47,7 @@
nixpkgs-master,
firefox-addons,
home-manager,
proxmox-nixos,
nixos-hardware,
nixvim,
nh,
@ -84,7 +85,22 @@
};
"beleth" = lib.nixosSystem {
system = "x86_64-linux";
modules = [./hosts/x86_64-linux/beleth];
modules = [
./hosts/x86_64-linux/beleth
proxmox-nixos.nixosModules.proxmox-ve
({
pkgs,
lib,
...
}: {
services.proxmox-ve.enable = true;
nixpkgs.overlays = [
proxmox-nixos.overlays.${system}
];
services.openssh.settings.AcceptEnv = lib.mkForce "GIT_PROTOCOL LANG LC_*";
})
];
specialArgs = {inherit inputs;};
};
"alastor" = lib.nixosSystem {

View file

@ -8,8 +8,19 @@
services.openssh.settings.PasswordAuthentication = false;
# networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
networking = {
# bridges = {
# vmbr0 = {
# interfaces = [ "enp0s31f6" ];
# };
# };
# useDhCP = lib.mkDefault true;
interfaces = {
# vmbr0 = {
# useDHCP = lib.mkDefault true;
# };
enp0s31f6 = {
ipv4 = {
addresses = [