programs: add qalculate
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
2f90414bff
commit
b218264db7
3 changed files with 31 additions and 1 deletions
|
@ -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;
|
||||
|
|
30
options/custom/programs/qalculate.nix
Normal file
30
options/custom/programs/qalculate.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue