summary refs log tree commit diff
path: root/modules/common.nix
blob: 18789097b0848e4139a3301fda13ee3cb835e1d0 (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
{ config, pkgs, unstablePkgs, auxiliaryPkgs, ... }:

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

  boot.kernelPackages = pkgs.linuxPackages_latest;

  nix.settings.experimental-features = [ "flakes" "nix-command" ];

  services.envfs.enable = true;
  virtualisation.libvirtd.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;
    vim = {
      defaultEditor = true;
      package = pkgs.vim_configurable.customize {
        vimrcFile = ../configs/.vimrc;
      };
    };
    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 pciutils lshw 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
    audacity musescore reaper bitwig-studio
    lagrange
    qemu_full virtiofsd

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

    ripgrep gnumake gdb gcc clang
    go gopls delve go-task
    meson cmake
    nil direnv

    wineWowPackages.stagingFull winetricks bottles
    scrcpy apfs-fuse

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

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