about summary refs log tree commit diff
path: root/modules/nixos/profiles/default.nix
blob: 202775874afe3f6bfe237c92b903718285b76aa1 (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
{
  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