1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 08:01:02 +01:00
home-manager/tests/modules/programs/gurk-rs/basic-config.nix
2025-07-13 17:51:03 -05:00

46 lines
1 KiB
Nix

{ pkgs, ... }:
{
programs.gurk-rs = {
enable = true;
settings = {
first_name_only = false;
show_receipts = true;
notifications = true;
bell = true;
colored_messages = false;
default_keybindings = true;
user = {
name = "MYNAME";
phone_number = "MYNUMBER";
};
keybindings = { };
};
};
nmt.script =
let
configFile =
if pkgs.stdenv.isDarwin then
"home-files/Library/Application\\ Support/gurk/gurk.toml"
else
"home-files/.config/gurk/gurk.toml";
in
''
assertFileExists ${configFile}
assertFileContent ${configFile} \
${pkgs.writeText "settings-expected" ''
bell = true
colored_messages = false
default_keybindings = true
first_name_only = false
notifications = true
show_receipts = true
[keybindings]
[user]
name = "MYNAME"
phone_number = "MYNUMBER"
''}
'';
}