From 05a37d70dddb94ac0eae5c141d190e5b7a0666f7 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 9 Feb 2024 07:47:36 +0400 Subject: [PATCH] add aria2c --- hosts/sakotop/configuration.nix | 1 + modules/shell/aria/default.nix | 24 ++++++++++++++++++++++++ modules/shell/default.nix | 1 + 3 files changed, 26 insertions(+) create mode 100644 modules/shell/aria/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 481d337a..a45f79f3 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -109,6 +109,7 @@ tmux.enable = true; newsboat.enable = true; ranger.enable = true; + aria.enable = true; }; media = { mpd.enable = false; diff --git a/modules/shell/aria/default.nix b/modules/shell/aria/default.nix new file mode 100644 index 00000000..5c2d7ee3 --- /dev/null +++ b/modules/shell/aria/default.nix @@ -0,0 +1,24 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.shell.aria; +in +{ + options.modules.shell.aria= { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + aria + ]; + # home-manager.users.sako = { pkgs, ...}: { + # xdg.configFile = { + # aria = { + # source = ../../../config/aria; + # recursive = true; + # }; + # }; + # }; + }; +} diff --git a/modules/shell/default.nix b/modules/shell/default.nix index 419af2d7..1d4e6b93 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -5,5 +5,6 @@ ./tmux ./newsboat ./ranger + ./aria ]; }