aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/dircolors/settings.nix
blob: 9ca676ef9c055cb13390c4c87602e3efc786ec66 (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
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    programs.dircolors = {
      enable = true;

      settings = {
        OTHER_WRITABLE = "30;46";
        ".sh" = "01;32";
        ".csh" = "01;32";
      };

      extraConfig = ''
        # Extra dircolors configuration.
      '';
    };

    nmt.script = ''
      assertFileContent \
        home-files/.dir_colors \
        ${./settings-expected.conf}
    '';
  };
}