1
1
Fork 0

programs: add qalculate

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-02-12 17:10:53 -06:00
parent 2f90414bff
commit b218264db7
Signed by: Myned
GPG key ID: C7224454F7881A34
3 changed files with 31 additions and 1 deletions

View file

@ -21,6 +21,7 @@ with lib; {
nixgl.enable = true;
nushell.enable = true;
polkit.enable = true;
qalculate.enable = true;
ssh.enable = true;
starship.enable = true;
sudo.enable = true;

View file

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.custom.programs.qalculate;
in {
options.custom.programs.qalculate = {
enable = mkOption {default = false;};
};
config = mkIf cfg.enable {
# https://github.com/Qalculate/libqalculate
# https://qalculate.github.io/manual/qalc.html
environment.systemPackages = [pkgs.libqalculate];
home-manager.sharedModules = [
{
xdg.configFile = {
# https://github.com/svenstaro/rofi-calc?tab=readme-ov-file#advanced-usage
"qalculate/qalc.cfg".text = ''
digit_grouping=2
'';
};
}
];
};
}

View file

@ -28,7 +28,6 @@ in {
fzf # Fuzzy search
jq # JSON parser
killport # Kill processes on port
libqalculate # Calculator
lf # Terminal file manager
lm_sensors # System sensors
nix-output-monitor # Nix build parser