summaryrefslogtreecommitdiff
path: root/nixos/common2.nix
blob: 4c82e197e04f53089613f199e7ecda5f43876fe8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# More stuff, slows down boot process
# so not enabled by default on kusanagi

{ config, pkgs, lib, ... }:

{
  # Input method for japanese
  i18n.inputMethod.enabled = "fcitx5";
  i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];

  # ---- hardware support

  # Enable CUPS to print documents.
  services.printing.enable = true;

  # Enable RTL-SDR
  hardware.rtl-sdr.enable = true;

  # ---- networking

  # Enable tailscale
  services.tailscale.enable = true;

  # Enable Tor daemon
  services.tor = {
    enable = true;
    client.enable = true;
  };

  # ---- virtualization

  # Enable libvirt
  virtualisation.libvirtd.enable = true;

  # Enable docker
  virtualisation.docker.enable = true;

  users.users.lx.extraGroups = [ "docker" "libvirtd" ];
}