aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-10-07 20:19:48 +0200
committerMartin Fischer <martin@push-f.com>2026-10-07 20:30:52 +0200
commita8a1d91d765f353c07b6ea86f67d2f6b4087aafd (patch)
tree538fe92bb28ce4f8196dc55d57c828498341b51e
parentcbdbb5f1da26df2ed70ca7bdffc2497322d802fc (diff)
feat(workstation): add qalc
Before I was using python as a calculator, which is a bad idea because of floating-point arithmetic. qalc is great.
-rw-r--r--nixos/profiles/workstation/default.nix1
-rw-r--r--user/qalculate/qalc.cfg91
2 files changed, 92 insertions, 0 deletions
diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix
index 8529ec9..8a2146b 100644
--- a/nixos/profiles/workstation/default.nix
+++ b/nixos/profiles/workstation/default.nix
@@ -76,6 +76,7 @@ in
nixfmt
(callPackage ./pkgs/nvim.nix {})
+ libqalculate
cmd50
(writeShellScriptBin "xdg-open" ''
diff --git a/user/qalculate/qalc.cfg b/user/qalculate/qalc.cfg
new file mode 100644
index 0000000..fbc294c
--- /dev/null
+++ b/user/qalculate/qalc.cfg
@@ -0,0 +1,91 @@
+
+[General]
+version=5.10.0
+save_config=1
+save_mode_on_exit=1
+save_definitions_on_exit=1
+clear_history_on_exit=0
+default_currency=EUR
+ignore_locale=0
+colorize=1
+auto_update_exchange_rates=-1
+spacious=1
+vertical_space=1
+excessive_parenthesis=0
+short_multiplication=1
+use_unicode_signs=1
+use_unicode_exponents=1
+lower_case_numbers=0
+duodecimal_symbols=0
+exp_display=1
+imaginary_j=0
+base_display=1
+binary_bits=0
+twos_complement=1
+hexadecimal_twos_complement=0
+twos_complement_input=0
+hexadecimal_twos_complement_input=0
+spell_out_logical_operators=1
+digit_grouping=0
+decimal_comma=-1
+dot_as_separator=0
+comma_as_separator=0
+multiplication_sign=2
+division_sign=0
+
+[Mode]
+min_deci=0
+use_min_deci=0
+max_deci=2
+use_max_deci=0
+precision=10
+interval_arithmetic=1
+interval_display=0
+min_exp=-1
+negative_exponents=0
+sort_minus_last=1
+number_fraction_format=-1
+complex_number_form=0
+use_prefixes=1
+use_prefixes_for_all_units=0
+use_prefixes_for_currencies=0
+use_binary_prefixes=0
+abbreviate_names=1
+all_prefixes_enabled=0
+denominator_prefix_enabled=1
+place_units_separately=1
+auto_post_conversion=3
+mixed_units_conversion=3
+local_currency_conversion=1
+number_base=10
+number_base_expression=10
+read_precision=0
+assume_denominators_nonzero=1
+warn_about_denominators_assumed_nonzero=1
+structuring=1
+angle_unit=1
+caret_as_xor=0
+concise_uncertainty_input=0
+functions_enabled=1
+variables_enabled=1
+calculate_variables=1
+calculate_functions=1
+variable_units_enabled=1
+sync_units=1
+unknownvariables_enabled=0
+units_enabled=1
+allow_complex=1
+allow_infinite=1
+indicate_infinite_series=0
+show_ending_zeroes=1
+rounding_mode=0
+approximation=-1
+interval_calculation=1
+calculate_as_you_type=0
+in_rpn_mode=0
+rpn_syntax=0
+limit_implicit_multiplication=0
+parsing_mode=0
+simplified_percentage=-1
+default_assumption_type=4
+default_assumption_sign=0