feat: wget
This commit is contained in:
parent
fd4481a2e1
commit
00a252a009
6 changed files with 26 additions and 1 deletions
|
@ -19,6 +19,7 @@ in {
|
|||
neovim = enabled;
|
||||
nix-output-monitor = enabled;
|
||||
ripgrep = enabled;
|
||||
wget = enabled;
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
./neovim.nix
|
||||
./nix-output-monitor.nix
|
||||
./ripgrep.nix
|
||||
./wget.nix
|
||||
];
|
||||
}
|
||||
|
|
16
modules/base/programs/wget.nix
Normal file
16
modules/base/programs/wget.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -32,6 +32,7 @@ in {
|
|||
starship = enabled;
|
||||
systemctl = enabled;
|
||||
tmux = enabled;
|
||||
wget = enabled;
|
||||
};
|
||||
}
|
||||
#
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
./tea.nix
|
||||
./tmux.nix
|
||||
./waybar.nix
|
||||
./wget.nix
|
||||
|
||||
# TODO: uncomment when swaylock is figured out
|
||||
# ./wlogout
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
{
|
||||
marleylib,
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (marleylib.module) mkEnableOption';
|
||||
|
||||
cfg = config.marleyos.programs.wget;
|
||||
osCfg = osConfig.marleyos.programs.wget;
|
||||
in {
|
||||
options.marleyos.programs.wget.enable = lib.mkEnableOption "wget";
|
||||
options.marleyos.programs.wget.enable = mkEnableOption' "wget" osCfg.enable;
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
Loading…
Reference in a new issue