mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 00:59:44 +01:00
d469b9bf8a
Watson is a CLI for tracking your time. Two unit tests were added to validate the module behavior for an empty configuration and the example configuration.
19 lines
366 B
Nix
19 lines
366 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
programs.watson = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
};
|
|
|
|
nmt.script = let
|
|
configDir = if pkgs.stdenv.hostPlatform.isDarwin then
|
|
"home-files/Library/Application Support"
|
|
else
|
|
"home-files/.config";
|
|
in ''
|
|
assertPathNotExists ${configDir}/watson/config
|
|
'';
|
|
}
|