summaryrefslogtreecommitdiff
path: root/modules/common/profiles/headful.nix
blob: e5490b5a9fe7b97b279a552922a766da024149c0 (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
{
  config,
  lib,
  pkgs,
  this,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.profiles.headful;
in {
  options.nixfiles.modules.profiles.headful.enable =
    mkEnableOption "headful profile" // {default = this.isHeadful;};

  config = mkIf cfg.enable {
    nixfiles.modules = {
      profiles.dev.default.enable = true;

      alacritty.enable = true;
      aria2.enable = true;
      emacs.enable = true;
      mpv.enable = true;
      openssh.client.enable = true;
      password-store.enable = true;
    };

    hm = {
      home = {
        file.".digrc".text = ''
          +answer
          +multiline
          +recurse
        '';

        packages = with pkgs; [
          fd
          ripgrep
          ripgrep-all
          sd
        ];
      };
    };

    environment.systemPackages = with pkgs; [
      arping
      dnsutils
      inetutils
      ldns
      socat
      tcpdump
    ];
  };
}