fork/home-manager
git clone https://git.julia.blue/fork/home-manager
cb09a968
master
1{ pkgs , ...} : 2 3let 4inherit ( pkgs . stdenv . hostPlatform ) isDarwin ; 5 6path = if isDarwin then 7"Library/Application Support/rbw/config.json" 8else 9".config/rbw/config.json" ; 10 11expected = pkgs . writeText "rbw-expected.json" '' 12{ 13"base_url": null, 14"email": "name@example.com", 15"identity_url": null, 16"lock_timeout": 3600, 17"pinentry": "@pinentry-gtk2@/bin/pinentry" 18} 19'' ; 20in { 21imports = [ ./rbw-stubs.nix ]; 22 23programs . rbw = { 24enable = true ; 25settings = { = "name@example.com" ; }; 26}; 27 28nmt . script = '' 29assertFileExists home-files/ ${ path } 30assertFileContent home-files/ ${ path } ' ${ expected } ' 31'' ; 32}