clock-rs: add module
clock-rs is a modern, digital clock that effortlessly runs in your terminal
This commit is contained in:
parent
ac21ae3716
commit
14eda3db4e
8 changed files with 154 additions and 0 deletions
20
tests/modules/programs/clock-rs/empty-settings.nix
Normal file
20
tests/modules/programs/clock-rs/empty-settings.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ 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"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue