Files
dotfiles/hosts/satori/services.nix
natto1784 6130b448e0 misc changes
new services, random config updates
2021-11-30 06:31:53 +05:30

36 lines
879 B
Nix

{lib, config, pkgs, ... }:
{
services = {
tor.enable = true;
logmein-hamachi.enable = true;
openssh = {
enable = true;
permitRootLogin = "yes";
};
btrfs.autoScrub.enable = true;
udev.extraRules = ''
ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
'';
mysql = {
enable = true;
package = pkgs.mysql;
};
};
systemd.services = {
tor.wantedBy = lib.mkForce [];
mysql.wantedBy = lib.mkForce [];
logmein-hamachi.wantedBy = lib.mkForce [];
openssh.wantedBy = lib.mkForce [];
#printing.wantedBy = lib.mkForce [];
#vault.wantedBy = lib.mkForce [];
};
security.pki.certificateFiles = [ ../../cert.pem ];
/* virtualisation.libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemuRunAsRoot = false;
};*/
}