about summary refs log tree commit diff
path: root/modules/nixos/profiles/default.nix
blob: 93c46e3679c8b0d52001ef2fa69d2a85b5d81785 (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
{
  config,
  lib,
  pkgs,
  ...
}:
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
      sysstat
      usbutils
      util-linux
    ];
  };
}

Consider giving Nix/NixOS a try! <3