From 17bdbab682f7609d97e520a4e39cd4866b426bb6 Mon Sep 17 00:00:00 2001 From: xqtc Date: Fri, 23 Aug 2024 17:42:21 +0200 Subject: [PATCH] proxmox w/o networking --- flake.nix | 18 +++++++++++++++++- home/modules/nixvim.nix | 2 +- hosts/x86_64-linux/beleth/networking.nix | 11 +++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 53e8f5b..f28f928 100644 --- a/flake.nix +++ b/flake.nix @@ -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 { diff --git a/home/modules/nixvim.nix b/home/modules/nixvim.nix index 2f34ce5..75ad1d0 100644 --- a/home/modules/nixvim.nix +++ b/home/modules/nixvim.nix @@ -85,7 +85,7 @@ enable = true; inlayHints = true; servers = { - # disabled due to compile error + # disabled due to compile error # typst-lsp.enable = true; typos-lsp.enable = true; docker-compose-language-service.enable = true; diff --git a/hosts/x86_64-linux/beleth/networking.nix b/hosts/x86_64-linux/beleth/networking.nix index d398a56..39b0039 100644 --- a/hosts/x86_64-linux/beleth/networking.nix +++ b/hosts/x86_64-linux/beleth/networking.nix @@ -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 = [