From 22a7840cbc38c6592364e0fe4cbf7635af91e2ce Mon Sep 17 00:00:00 2001 From: catvayor Date: Wed, 20 Mar 2024 10:07:21 +0100 Subject: [PATCH] will do some virtualisation testing --- machines/kat-probook/configuration.nix | 4 ++++ machines/kat-r86s/configuration.nix | 4 ++++ modules/ssh.nix | 5 +++++ users/catvayor.nix | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/machines/kat-probook/configuration.nix b/machines/kat-probook/configuration.nix index 251a6a4..8bd4511 100644 --- a/machines/kat-probook/configuration.nix +++ b/machines/kat-probook/configuration.nix @@ -96,6 +96,10 @@ }; services.netbird.enable = true; + boot.kernelModules = [ "kvm-intel" "kvm-amd" ]; + programs.virt-manager.enable = true; + virtualisation.libvirtd.enable = true; + # List services that you want to enable: # Enable the OpenSSH daemon. diff --git a/machines/kat-r86s/configuration.nix b/machines/kat-r86s/configuration.nix index 646c059..77e1530 100644 --- a/machines/kat-r86s/configuration.nix +++ b/machines/kat-r86s/configuration.nix @@ -81,6 +81,10 @@ services.openssh.enable = true; services.netbird.enable = true; + boot.kernelModules = [ "kvm-intel" "kvm-amd" ]; + programs.virt-manager.enable = true; + virtualisation.libvirtd.enable = true; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; diff --git a/modules/ssh.nix b/modules/ssh.nix index 0ccd9a9..8297ffc 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -23,6 +23,11 @@ hostname = "100.102.129.187"; }; + "virt.kat" = { + user = "root"; + hostname = "100.102.157.122"; + }; + "sas.ens" = { user = "lbailly"; hostname = "sas.eleves.ens.fr"; diff --git a/users/catvayor.nix b/users/catvayor.nix index 8e2bb74..062afb6 100644 --- a/users/catvayor.nix +++ b/users/catvayor.nix @@ -4,7 +4,7 @@ users.users.catvayor = { shell = pkgs.zsh; isNormalUser = true; - extraGroups = [ "wheel" "usb" "networkmanager" "video" "audio" ]; + extraGroups = [ "wheel" "usb" "networkmanager" "video" "audio" "libvirtd" ]; packages = with pkgs; [ tree ];