mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 15:11:04 +00:00
21 lines
483 B
Nix
21 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'
|
||
|
'';
|
||
|
};
|
||
|
}
|