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;
|
neovim = enabled;
|
||||||
nix-output-monitor = enabled;
|
nix-output-monitor = enabled;
|
||||||
ripgrep = enabled;
|
ripgrep = enabled;
|
||||||
|
wget = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -7,5 +7,6 @@
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./nix-output-monitor.nix
|
./nix-output-monitor.nix
|
||||||
./ripgrep.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;
|
starship = enabled;
|
||||||
systemctl = enabled;
|
systemctl = enabled;
|
||||||
tmux = enabled;
|
tmux = enabled;
|
||||||
|
wget = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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; [
|
Loading…
Reference in a new issue