[home] add virt-manager

This commit is contained in:
2024-06-28 09:09:05 +08:00
parent 01c9770d31
commit 5c21de5ca1
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -147,6 +147,7 @@
simple-scan
]);
virtualisation.libvirtd.enable = true;
services.tailscale.enable = true;
# Users
+6
View File
@@ -45,6 +45,12 @@ in
options = [ "${btrfs-options},subvol=@docker" ];
};
fileSystems."/var/lib/libvirt" =
{ device = "/dev/disk/by-uuid/1b3938f0-358f-4358-b7fb-b448b6eba56a";
fsType = "btrfs";
options = [ "subvol=@libvirt" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
+16
View File
@@ -1,5 +1,20 @@
{ pkgs, lib, config, ... }:
{
# This can update XDG_DATA_DIR in .profile, which
# make applications show up in GNOME's application menu.
# See: https://github.com/nix-community/home-manager/issues/1439#issuecomment-673944201
programs.bash.enable = true;
targets.genericLinux.enable = true;
xdg.enable = true;
home.activation = {
linkDesktopApplications = {
after = [ "writeBoundary" "createXdgUserDirectories" ];
before = [ ];
data = "${pkgs.desktop-file-utils}/bin/update-desktop-database";
};
};
home.packages = with pkgs; [
desktop-file-utils
@@ -8,6 +23,7 @@
mpv
feishu
moonlight-qt
virt-manager
];
# An Apple Music client, only can be downloaded after purchasing