about summary refs log tree commit diff
path: root/modules/common/profiles/headful.nix
blob: 968b287a3324e11c77dcce48fc867e387284e18f (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  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; [
          anki
          comma
          fd
          ripgrep
          ripgrep-all
          sd
          tldr
        ];
      };
    };

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

Consider giving Nix/NixOS a try! <3