Files
dotfiles/hosts/okina/services.nix
2024-05-27 23:00:24 +05:30

35 lines
676 B
Nix

{ lib, config, pkgs, ... }:
{
services = {
openssh = {
enable = true;
settings.PermitRootLogin = "yes";
};
ratbagd.enable = true;
btrfs.autoScrub.enable = true;
gvfs.enable = true;
logind.extraConfig = "RuntimeDirectorySize=30%";
printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
};
systemd.services = {
libvirtd.wantedBy = lib.mkForce [ ];
};
security.pki.certificateFiles = [ ../../cert.pem ];
virtualisation = {
docker = {
enable = true;
};
libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemu.runAsRoot = true;
};
};
}