diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index 0020c75..106507c 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -46,6 +46,7 @@ in systemctl = enabled; tmux = enabled; wezterm = enabled; + wget = enabled; }; xorg = { xsession = enabled; diff --git a/old/home/programs/wget.nix b/modules/home/programs/wget/default.nix similarity index 61% rename from old/home/programs/wget.nix rename to modules/home/programs/wget/default.nix index 57d6960..7891381 100644 --- a/old/home/programs/wget.nix +++ b/modules/home/programs/wget/default.nix @@ -1,18 +1,25 @@ { - pkgs, lib, config, + namespace, + pkgs, ... }: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.wget; +in { - home.packages = with pkgs; [ - wget - ]; + options = mkEnableModule "programs.wget"; - xdg.configFile."wgetrc" = { - enable = true; + config = mkIf cfg.enable { + home.packages = with pkgs; [ + wget + ]; - text = # wget + xdg.configFile."wgetrc".text = # wget '' # Use the server-provided last modification date, if available. timestamping = on @@ -33,9 +40,9 @@ # Disguise as IE 9 on Windows 7. user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) ''; - }; - home.sessionVariables = lib.mkIf config.home.preferXdgDirectories { - WGETRC = "${config.xdg.configHome}/wgetrc"; + home.sessionVariables = lib.mkIf config.home.preferXdgDirectories { + WGETRC = "${config.xdg.configHome}/wgetrc"; + }; }; }