diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-26 12:44:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-26 13:12:16 +0900 |
| commit | 12c6d66bfd3de9a6619b249755a6e51673c3d78d (patch) | |
| tree | 4e673dfe01778e52aea0de2843fe0781c0ec7f0a /cmd/fpkg/test/foot.nix | |
| parent | d7d2bd33eda985c128b7869b8eaa984507d66bc2 (diff) | |
cmd/fpkg/test: nixos test fpkg install/start
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg/test/foot.nix')
| -rw-r--r-- | cmd/fpkg/test/foot.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/cmd/fpkg/test/foot.nix b/cmd/fpkg/test/foot.nix new file mode 100644 index 00000000..34469da0 --- /dev/null +++ b/cmd/fpkg/test/foot.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPackage, + foot, + wayland-utils, + inconsolata, +}: + +buildPackage { + name = "foot"; + inherit (foot) version; + + app_id = 2; + id = "org.codeberg.dnkl.foot"; + + modules = [ + { + home.packages = [ + foot + + # For wayland-info: + wayland-utils + ]; + } + ]; + + nixosModules = [ + { + # To help with OCR: + environment.etc."xdg/foot/foot.ini".text = lib.generators.toINI { } { + main = { + font = "inconsolata:size=14"; + }; + colors = rec { + foreground = "000000"; + background = "ffffff"; + regular2 = foreground; + }; + }; + + fonts.packages = [ inconsolata ]; + } + ]; + + script = '' + exec foot "$@" + ''; +} |
