virtualization
This commit is contained in:
parent
6cfe222544
commit
2bbf3f7949
@ -4,5 +4,7 @@
|
||||
|
||||
```bash
|
||||
git clone https://git.foglar.tech/foglar/dotfiles.git $HOME/dotfiles --depth 1
|
||||
sudo nixos-rebuild switch ~/dotfiles#laptop
|
||||
sudo nixos-rebuild switch --flake ~/dotfiles#laptop
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
@ -73,6 +73,7 @@
|
||||
proxychains.enable = false;
|
||||
tor.enable = false;
|
||||
virt-manager.enable = false;
|
||||
virtualbox.enable = false;
|
||||
};
|
||||
|
||||
# Basic programs to enable
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
proxychains.enable = lib.mkDefault true;
|
||||
tor.enable = lib.mkDefault true;
|
||||
virt-manager.enable = lib.mkDefault true;
|
||||
virtualbox.enable = lib.mkDefault true;
|
||||
};
|
||||
sys.desktop.steamdeck.enable = lib.mkDefault false;
|
||||
programs.kdeconnect.enable = lib.mkDefault true;
|
||||
|
||||
@ -1,13 +1,27 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
userSettings,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
program.virt-manager.enable = lib.mkEnableOption "Enable virt-manager";
|
||||
program.virtualbox.enable = lib.mkEnableOption "Enable VirtualBox";
|
||||
};
|
||||
config = lib.mkIf config.program.virt-manager.enable {
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.program.virt-manager.enable {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
})
|
||||
(lib.mkIf config.program.virtualbox.enable {
|
||||
virtualisation.virtualbox = {
|
||||
host.enable = true;
|
||||
guest = {
|
||||
enable = true;
|
||||
dragAndDrop = true;
|
||||
};
|
||||
};
|
||||
users.extraGroups.vboxusers.members = ["${userSettings.username}"];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
@ -75,6 +75,7 @@
|
||||
proxychains.enable = true;
|
||||
tor.enable = true;
|
||||
virt-manager.enable = true;
|
||||
virtualbox.enable = false;
|
||||
};
|
||||
|
||||
# Basic programs to enable
|
||||
|
||||
Loading…
Reference in New Issue
Block a user