home: add wget
This is mostly so that I can add the XDG-compliant configuration.
This commit is contained in:
parent
cb97b0dbde
commit
9d9dba2cc2
|
@ -39,6 +39,7 @@
|
||||||
./tmux
|
./tmux
|
||||||
./udiskie
|
./udiskie
|
||||||
./vim
|
./vim
|
||||||
|
./wget
|
||||||
./wm
|
./wm
|
||||||
./x
|
./x
|
||||||
./xdg
|
./xdg
|
||||||
|
|
26
modules/home/wget/default.nix
Normal file
26
modules/home/wget/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ 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.dataHome}/wget-hsts
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue