2021-06-06 02:09:02 +02:00
|
|
|
{ pkgs, ... }:
|
2021-09-26 11:08:45 +02:00
|
|
|
|
2021-06-06 02:09:02 +02:00
|
|
|
let
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
|
|
|
|
|
|
path = if isDarwin then
|
|
|
|
"Library/Application Support/rbw/config.json"
|
|
|
|
else
|
|
|
|
".config/rbw/config.json";
|
|
|
|
in {
|
2021-09-26 11:08:45 +02:00
|
|
|
imports = [ ./rbw-stubs.nix ];
|
2021-06-06 02:09:02 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
programs.rbw.enable = true;
|
2021-06-06 02:09:02 +02:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertPathNotExists home-files/${path}
|
|
|
|
'';
|
2021-06-06 02:09:02 +02:00
|
|
|
}
|