add VM config with TPM, update, add kleopatra, port forward, disable controller

This commit is contained in:
2025-01-02 19:11:51 +01:00
parent 6fad41be75
commit b264f69a5a
2 changed files with 24 additions and 6 deletions

View File

@ -24,8 +24,8 @@
hardware = { hardware = {
xone.enable = true; #xone.enable = true;
xpadneo.enable = true; #xpadneo.enable = true;
steam-hardware.enable = true; steam-hardware.enable = true;
opengl.enable = true; opengl.enable = true;
}; };
@ -40,7 +40,7 @@
# Network security # Network security
# enable firewall and block all ports # enable firewall and block all ports
networking.firewall.enable = true; networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = []; networking.firewall.allowedTCPPorts = [7777];
networking.firewall.allowedUDPPorts = []; networking.firewall.allowedUDPPorts = [];
# disable coredump that could be exploited later # disable coredump that could be exploited later
@ -150,6 +150,7 @@
jdk jdk
cypress cypress
jq jq
swtpm
# Controller # Controller
linuxConsoleTools linuxConsoleTools
# Buildtools # Buildtools
@ -174,6 +175,7 @@
remmina remmina
krita krita
darktable darktable
kdePackages.kleopatra
]; ];
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
@ -192,6 +194,22 @@
# enable and configure Docker # enable and configure Docker
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
# enable VMs
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["schulze"];
virtualisation = {
libvirtd = {
enable = true;
qemu = {
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
# package = pkgs.qemu_kvm;
};
};
spiceUSBRedirection.enable = true;
};
# SSH settings # SSH settings
programs.ssh.extraConfig = ""; programs.ssh.extraConfig = "";

6
flake.lock generated
View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1724531977, "lastModified": 1735563628,
"narHash": "sha256-XROVLf9ti4rrNCFLr+DmXRZtPjCQTW4cYy59owTEmxk=", "narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2527da1ef492c495d5391f3bcf9c1dd9f4514e32", "rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798",
"type": "github" "type": "github"
}, },
"original": { "original": {