summary refs log tree commit diff
path: root/modules/common.nix
blob: a615491c672545b895d41a3fcd9eff02db9ef4eb (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{ me, config, lib, pkgs, unstablePkgs, auxiliaryPkgs, ... }:

{
  imports = [
    ./nix.nix
    ./user.nix
    ./locale.nix
    ./vim.nix
    ./gnome.nix
    ./fonts.nix
    ./flatpak.nix
    ./libreoffice.nix
    ./nix-ld.nix
  ];

  boot.kernelPackages = pkgs.linuxPackages_latest;

  services.envfs.enable = true;
  virtualisation.libvirtd.enable = true;

  # use corsac dns server
  networking.nameservers = let
    corsacTailnet = "100.64.100.100";
  in [ corsacTailnet ];
  services.resolved.enable = true;

  services = {
    acpid.enable = true;
    sysprof.enable = true;
    tailscale = {
      enable = true;
      useRoutingFeatures = "both";
      extraUpFlags = [ "--ssh" ];
    };
  
    # sometimes needed for gnupg
    pcscd.enable = true;
  };
 
  programs = {
    steam = {
      enable = true;
      remotePlay.openFirewall = true;
    };
    virt-manager.enable = true;
    fish.enable = true;
    git.enable = true;
    tmux.enable = true;

    adb.enable = true;
    
    gnupg.agent = {
      enable = true;
      enableSSHSupport = true;
      pinentryPackage = pkgs.pinentry-gnome3;
    };
  };

  environment.systemPackages = (with pkgs; [
    file unzip jq dig htop wget gnupg pinentry-gnome3
    inetutils arp-scan pciutils lshw lsof inxi iw pmutils acpi acpid
    sysprof wireshark hardinfo
    vlc celluloid foliate calibre
    yt-dlp ffmpeg_7-full handbrake subtitlecomposer mpv helvum
    gimp krita aseprite blender inkscape obs-studio darktable
    renderdoc
    audacity musescore reaper bitwig-studio
    lagrange
    qemu_full virtiofsd

    openvpn openvpn3 update-resolv-conf
    
    xorg.xeyes wl-clipboard

    ripgrep fzf bat delta universal-ctags
    python3 black
    nodejs_22 deno yarn
    rustc rustup cargo rustfmt
    go gopls delve go-task gotags
    meson cmake gnumake gdb gcc clang clang-tools
    hare haredoc
    jdk maven gradle
    nil nixfmt-rfc-style direnv
    nixpkgs-review nixpkgs-fmt nixpkgs-lint-community
    helix

    wineWowPackages.stagingFull winetricks bottles
    scrcpy apfs-fuse
    borgbackup pika-backup

    prismlauncher xonotic
  ]) ++ (with unstablePkgs; [
    davinci-resolve muse-sounds-manager
  ]) ++ (with auxiliaryPkgs; [
    ghidra ngfx retroarch
  ]);

  environment.etc.openvpn.source = "${pkgs.update-resolv-conf}/libexec/openvpn";
}