nix-config/modules/home/wget/default.nix
Bruno BELANYI fbd3b70d61
All checks were successful
ci/woodpecker/push/check Pipeline was successful
home: use 'XDG_STATE_HOME' for history files
It's specified as the place to put them, so let's make use of it I
guess.
2024-09-06 20:52:30 +01:00

27 lines
506 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.my.home.wget;
in
{
options.my.home.wget = with lib; {
enable = my.mkDisableOption "wget configuration";
package = mkPackageOption pkgs "wget" { };
};
config = lib.mkIf cfg.enable {
home.packages = [
cfg.package
];
home.sessionVariables = lib.mkIf cfg.enable {
WGETRC = "${config.xdg.configHome}/wgetrc";
};
xdg.configFile."wgetrc".text = ''
hsts-file = ${config.xdg.stateHome}/wget-hsts
'';
};
}