1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-30 21:59:49 +01:00
home-manager/tests/modules/services/barrier/basic-configuration.nix
Kritnich 2eed138026
barrier: add module
Co-authored-by: Sumner Evans <me@sumnerevans.com>
2021-05-01 00:11:17 +02:00

20 lines
483 B
Nix

{ config, pkgs, ... }:
{
config = {
services.barrier.client = {
enable = true;
server = "testServer";
};
nixpkgs.overlays =
[ (self: super: { barrier = pkgs.writeScriptBin "dummy-barrier" ""; }) ];
nmt.script = ''
clientServiceFile=home-files/.config/systemd/user/barrierc.service
assertFileExists $clientServiceFile
assertFileRegex $clientServiceFile 'ExecStart=.*/bin/barrierc --enable-crypto -f testServer'
'';
};
}