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, nixpkgs-master,
firefox-addons, firefox-addons,
home-manager, home-manager,
proxmox-nixos,
nixos-hardware, nixos-hardware,
nixvim, nixvim,
nh, nh,
@ -84,7 +85,22 @@
}; };
"beleth" = lib.nixosSystem { "beleth" = lib.nixosSystem {
system = "x86_64-linux"; 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;}; specialArgs = {inherit inputs;};
}; };
"alastor" = lib.nixosSystem { "alastor" = lib.nixosSystem {

View file

@ -85,7 +85,7 @@
enable = true; enable = true;
inlayHints = true; inlayHints = true;
servers = { servers = {
# disabled due to compile error # disabled due to compile error
# typst-lsp.enable = true; # typst-lsp.enable = true;
typos-lsp.enable = true; typos-lsp.enable = true;
docker-compose-language-service.enable = true; docker-compose-language-service.enable = true;

View file

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