about summary refs log tree commit diff stats
path: root/modules/by-name/li/libvirtd/module.nix
blob: ba5c271c4b012a75da26b3ef5ee7b713cd1b0b98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# nixos-config - My current NixOS configuration
#
# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of my nixos-config.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
{...}: {
  # FIXME(@bpeetz): Do something with this module. <2025-04-04>

  virtualisation = {
    # NOTE: this allows usb access to any user, which shouldn't be that bad
    spiceUSBRedirection.enable = true;

    # cores = 8;
    # diskSize = 25000;
    # useEFIBoot = true;
    # resolution = {
    #   x = 1920;
    #   y = 1080;
    # };
    # memorySize = 8024;
    # sharedDirectories = {}; # TODO: add some
    # libvirtd = {
    #   enable = true;
    #   qemu = {
    #     package = pkgs.qemu_full;
    #     ovmf = {
    #       enable = true;
    #       packages = [pkgs.OVMFFull.fd];
    #     };
    #   };
    # };
  };
  # users.users.soispha.extraGroups = [
  #   "libvirtd" # to run libvirt stuff as this user
  # ];
}