added a bunch of nixos modules
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{ ... }: {
|
||||
flake.modules.nixos.docker = { pkgs, ... }: {
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.rootless.setSocketVariable = true;
|
||||
virtualisation.docker.rootless.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{ ... }: {
|
||||
flake.modules.nixos.virtmanager = {
|
||||
programs.virt-manager.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
virtualisation.libvirtd.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ self, ... }: {
|
||||
flake.modules.nixos.virtualisation = {
|
||||
imports = [
|
||||
self.modules.nixos.docker
|
||||
self.modules.nixos.virtmanager
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user