mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-02 19:09:19 +01:00
desktop: Use vagrant with libvirtd
Sometimes it's necessary to spin up a virtual machine. NixOS conveniently has libvirt support built-in, so virtualbox isn't necessary.
This commit is contained in:
parent
f657b49051
commit
47617c7c3a
@ -199,7 +199,7 @@ in
|
|||||||
documentation.man.generateCaches = false;
|
documentation.man.generateCaches = false;
|
||||||
|
|
||||||
hardware.graphics.enable32Bit = mkForce false;
|
hardware.graphics.enable32Bit = mkForce false;
|
||||||
virtualisation.virtualbox.host.enable = mkForce false;
|
virtualisation.libvirtd.enable = mkForce false;
|
||||||
|
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -78,6 +78,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
onBoot = "ignore";
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
udisks2 = {
|
udisks2 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -141,6 +146,7 @@ in
|
|||||||
ringracers
|
ringracers
|
||||||
jamesdsp
|
jamesdsp
|
||||||
texliveFull
|
texliveFull
|
||||||
|
vagrant
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
|
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
|
||||||
@ -158,6 +164,10 @@ in
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
|
"vagrant"
|
||||||
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
enableDefaultPackages = false;
|
enableDefaultPackages = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user