2021-07-02 22:36:30 +00:00
|
|
|
{ pkgs, ... }:
|
2021-11-04 16:42:44 +00:00
|
|
|
|
2021-07-02 22:36:30 +00:00
|
|
|
let
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
|
|
|
|
|
|
path = if isDarwin then
|
|
|
|
"Library/Application Support/rbw/config.json"
|
|
|
|
else
|
|
|
|
".config/rbw/config.json";
|
|
|
|
in {
|
2021-11-04 16:42:44 +00:00
|
|
|
imports = [ ./rbw-stubs.nix ];
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
programs.rbw.enable = true;
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
nmt.script = ''
|
|
|
|
assertPathNotExists home-files/${path}
|
|
|
|
'';
|
2021-07-02 22:36:30 +00:00
|
|
|
}
|