fork/home-manager

git clone https://git.julia.blue/fork/home-manager

nikp123boxxy: add module (#4075)0945875a

master
608 B26 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.boxxy.enable = true;
8    programs.boxxy.rules = [{
9      name = "example rule";
10      target = "~/Arduino";
11      rewrite = "~/.local/share/boxxy";
12      mode = "directory";
13      only = [ "arduino" "Arduino" ];
14      env = { "ENVIRONMENT_THING" = "some value"; };
15      context = [ "/home/test_user/your_project_repo" ];
16    }];
17
18    test.stubs.boxxy = { };
19
20    nmt.script = ''
21      boxxyyaml=home-files/.config/boxxy/boxxy.yaml
22      assertFileExists $boxxyyaml
23      assertFileContent $boxxyyaml ${./example-boxxy.yaml}
24    '';
25  };
26}