aphorme: add module
This commit is contained in:
parent
41cae63118
commit
9ccc5b1ef4
4 changed files with 96 additions and 0 deletions
8
tests/modules/programs/aphorme/config.toml
Normal file
8
tests/modules/programs/aphorme/config.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[app_cfg]
|
||||
paths = ["$HOME/Desktop"]
|
||||
|
||||
[gui_cfg]
|
||||
font_size = 12
|
||||
icon = true
|
||||
ui_framework = "EGUI"
|
||||
window_size = [300, 300]
|
||||
5
tests/modules/programs/aphorme/default.nix
Normal file
5
tests/modules/programs/aphorme/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
aphorme-settings = ./settings.nix;
|
||||
}
|
||||
25
tests/modules/programs/aphorme/settings.nix
Normal file
25
tests/modules/programs/aphorme/settings.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
programs.aphorme = {
|
||||
enable = true;
|
||||
settings = {
|
||||
gui_cfg = {
|
||||
icon = true;
|
||||
ui_framework = "EGUI";
|
||||
font_size = 12;
|
||||
window_size = [
|
||||
300
|
||||
300
|
||||
];
|
||||
};
|
||||
app_cfg = {
|
||||
paths = [ "$HOME/Desktop" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/aphorme/config.toml
|
||||
assertFileContent home-files/.config/aphorme/config.toml \
|
||||
${./config.toml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue