mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 08:19:48 +01:00
20 lines
366 B
Nix
20 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
|
||
|
'';
|
||
|
}
|