summaryrefslogtreecommitdiff
path: root/modules/nixos/profiles/default.nix
blob: 0c78b0f55485458ee3fa9493f16d5369d91a40b7 (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
{
  config,
  lib,
  pkgs,
  this,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.profiles.default;
in {
  imports = [
    ./dev
    ./headful.nix
    ./headless.nix
  ];

  config = mkIf cfg.enable {
    ark.directories = ["/var/log"];

    programs.less = {
      enable = true;
      envVariables.LESSHISTFILE = "-";
    };

    environment.systemPackages = with pkgs; [
      cryptsetup
      lshw
      lsof
      pciutils
      psmisc
      usbutils
      util-linux
    ];
  };
}