mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 17:59:39 +01:00
20 lines
395 B
Nix
20 lines
395 B
Nix
{ pkgs, ... }:
|
|
{
|
|
config = {
|
|
programs.clock-rs.enable = true;
|
|
|
|
tests.stubs.clock-rs = { };
|
|
|
|
nmt.script =
|
|
let
|
|
configDir =
|
|
if pkgs.stdenv.isDarwin then
|
|
"home-files/Library/Application Support/clock-rs"
|
|
else
|
|
"home-files/.config/clock-rs";
|
|
in
|
|
''
|
|
assertPathNotExists "${configDir}/conf.toml"
|
|
'';
|
|
};
|
|
}
|