about summary refs log tree commit diff
path: root/modules/common/profiles/headful.nix
blob: 1578cccfc4896dee92d938f946ad5b0d54b25351 (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
{
  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.enable = true;

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

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

        packages = with pkgs; [
          fd
          ripgrep
          sd
          tldr
        ];
      };
    };

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

Consider giving Nix/NixOS a try! <3