framework: Enable QEMU.
parent
91fdeb5b47
commit
9af5ef490c
|
@ -75,10 +75,13 @@
|
||||||
|
|
||||||
time.timeZone = "America/Denver";
|
time.timeZone = "America/Denver";
|
||||||
|
|
||||||
virtualisation.docker.rootless = {
|
virtualisation = {
|
||||||
enable = true;
|
libvirtd.enable = true;
|
||||||
# Sets the `DOCKER_HOST` variable to the rootless Docker instance for normal
|
docker.rootless = {
|
||||||
# users by default.
|
enable = true;
|
||||||
setSocketVariable = true;
|
# Sets the `DOCKER_HOST` variable to the rootless Docker instance for normal
|
||||||
|
# users by default.
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,14 @@
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.jrpotter = args@{ pkgs, lib, ... }:
|
users.jrpotter = args@{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
base = import ../../users/jrpotter args;
|
base = import ../../users/jrpotter args // {
|
||||||
|
dconf.settings = {
|
||||||
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
|
autoconnect = ["qemu:///system"];
|
||||||
|
uris = ["qemu:///system"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
lib.attrsets.updateManyAttrsByPath [
|
lib.attrsets.updateManyAttrsByPath [
|
||||||
{
|
{
|
||||||
|
@ -21,6 +28,7 @@
|
||||||
bitwarden
|
bitwarden
|
||||||
firefox
|
firefox
|
||||||
gimp
|
gimp
|
||||||
|
virt-manager
|
||||||
wezterm
|
wezterm
|
||||||
zotero
|
zotero
|
||||||
]);
|
]);
|
||||||
|
@ -31,11 +39,15 @@
|
||||||
extraSpecialArgs = { inherit system stateVersion; };
|
extraSpecialArgs = { inherit system stateVersion; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# virt-manager requires dconf to remember settings.
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
users.users.jrpotter = {
|
users.users.jrpotter = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"docker"
|
"docker"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
|
"libvirtd"
|
||||||
"wheel"
|
"wheel"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue