mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-06-29 12:49:10 +00:00
Restructure Configuration
This commit is contained in:
parent
af4429982d
commit
7fce1cec3f
73 changed files with 841 additions and 3504 deletions
23
nixos/modules/virtualisation.nix
Normal file
23
nixos/modules/virtualisation.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable Docker
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
users.extraGroups.docker.members = [ "bart" ];
|
||||
|
||||
# Add KVM support
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
users.extraGroups.libvirtd.members = [ "bart" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu
|
||||
docker-compose
|
||||
lazydocker
|
||||
docker-credential-helpers
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue