my nixos/home-manager configuration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add libvirtd

+32
+4
nixos/clever-cloud/default.nix
··· 36 36 tlp.enable = true; 37 37 }; 38 38 39 + virtualisation = { 40 + libvirtd.enable = true; 41 + }; 42 + 39 43 networking.hostName = "clever-cloud"; 40 44 }
+4
nixos/desktop/default.nix
··· 40 40 mptcpd.enable = true; 41 41 }; 42 42 43 + virtualisation = { 44 + libvirtd.enable = true; 45 + }; 46 + 43 47 networking.hostName = "desktop"; 44 48 45 49 hardware.graphics = {
+24
nixos/modules/libvirtd.nix
··· 1 + { 2 + config, 3 + pkgs, 4 + lib, 5 + user, 6 + ... 7 + }: 8 + 9 + let 10 + cfg = config.virtualisation.libvirtd; 11 + in 12 + { 13 + config = lib.mkIf cfg.enable { 14 + virtualisation.libvirtd = { 15 + qemu.vhostUserPackages = [ pkgs.virtiofsd ]; 16 + }; 17 + 18 + users.users.${user.name} = { 19 + extraGroups = [ 20 + "libvirtd" 21 + ]; 22 + }; 23 + }; 24 + }