feat: wget

This commit is contained in:
punkfairie 2025-05-31 13:47:49 -07:00
parent fd4481a2e1
commit 00a252a009
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
6 changed files with 26 additions and 1 deletions

View file

@ -19,6 +19,7 @@ in {
neovim = enabled; neovim = enabled;
nix-output-monitor = enabled; nix-output-monitor = enabled;
ripgrep = enabled; ripgrep = enabled;
wget = enabled;
}; };
services = { services = {

View file

@ -7,5 +7,6 @@
./neovim.nix ./neovim.nix
./nix-output-monitor.nix ./nix-output-monitor.nix
./ripgrep.nix ./ripgrep.nix
./wget.nix
]; ];
} }

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.marleyos.programs.wget;
in {
options.marleyos.programs.wget.enable = lib.mkEnableOption "wget";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
wget
];
};
}

View file

@ -32,6 +32,7 @@ in {
starship = enabled; starship = enabled;
systemctl = enabled; systemctl = enabled;
tmux = enabled; tmux = enabled;
wget = enabled;
}; };
} }
# #

View file

@ -31,6 +31,7 @@
./tea.nix ./tea.nix
./tmux.nix ./tmux.nix
./waybar.nix ./waybar.nix
./wget.nix
# TODO: uncomment when swaylock is figured out # TODO: uncomment when swaylock is figured out
# ./wlogout # ./wlogout

View file

@ -1,12 +1,17 @@
{ {
marleylib,
lib, lib,
config, config,
osConfig,
pkgs, pkgs,
... ...
}: let }: let
inherit (marleylib.module) mkEnableOption';
cfg = config.marleyos.programs.wget; cfg = config.marleyos.programs.wget;
osCfg = osConfig.marleyos.programs.wget;
in { in {
options.marleyos.programs.wget.enable = lib.mkEnableOption "wget"; options.marleyos.programs.wget.enable = mkEnableOption' "wget" osCfg.enable;
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [