summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-04-01 23:01:16 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-04-01 23:01:16 +0200
commit24044692ced9fa35c12a35ed1e3fb692180f72fc (patch)
tree6a105d3115699eb5e38a122c4c80b9c4778c696d
parent619dbeaa76460e967134daca8bd35aeb23591eec (diff)
virtualisation and docker
-rw-r--r--nixos/common/default.nix2
-rw-r--r--nixos/common/services.nix22
2 files changed, 22 insertions, 2 deletions
diff --git a/nixos/common/default.nix b/nixos/common/default.nix
index c76dc51..8e14366 100644
--- a/nixos/common/default.nix
+++ b/nixos/common/default.nix
@@ -36,7 +36,7 @@
users.users.wilkuu = {
shell = pkgs.zsh;
isNormalUser = true;
- extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
+ extraGroups = [ "wheel" "networkmanager" "input" "docker" "adbusers" "libvirtd" ]; # Enable ‘sudo’ for the user.
packages = with pkgs; [
tree
];
diff --git a/nixos/common/services.nix b/nixos/common/services.nix
index 528363b..d63e547 100644
--- a/nixos/common/services.nix
+++ b/nixos/common/services.nix
@@ -1,2 +1,22 @@
{config, lib, pkgs, ...}:
-{}
+{
+
+ ## VM's
+ programs.dconf.enable = true;
+ programs.virt-manager.enable = true;
+ virtualisation = {
+ docker.enable = true;
+ libvirtd = {
+ enable = true;
+ qemu = {
+ swtpm.enable = true;
+ vhostUserPackages = with pkgs; [ virtiofsd ];
+ ovmf.enable = true;
+ ovmf.packages = [ pkgs.OVMFFull.fd ];
+ };
+ };
+ spiceUSBRedirection.enable = true;
+ };
+ services.spice-vdagentd.enable = true;
+
+}