about summary refs log tree commit diff
path: root/modules/nixos/profiles/default.nix
blob: 23eb455ec0e4e5dcb2d40dff409c98dfe9156f68 (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
{
  config,
  lib,
  pkgs,
  this,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.profiles.default;
in {
  imports = [
    ./dev
    ./headful.nix
    ./headless.nix
  ];

  config = mkIf cfg.enable {
    # FIXME Enable on a fresh system!
    # ark.directories = ["/var/log"];

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

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

Consider giving Nix/NixOS a try! <3