From 993957d14a5c6f5427f19b4f92458db2e12122eb Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 21 Jul 2023 20:48:10 +0300 Subject: [PATCH] add newsboat --- hosts/sakotop/configuration.nix | 4 +--- modules/shell/default.nix | 1 + modules/shell/newsboat/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 modules/shell/newsboat/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 92191bac..ab0d1617 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -78,6 +78,7 @@ search.enable = true; }; zsh.enable = true; + newsboat.enable = true; }; media = { mpd.enable = true; @@ -93,9 +94,6 @@ users.users.sako= { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user. - packages = with pkgs; [ - newsboat - ]; }; services.xserver.videoDrivers = [ "nvidia" ]; diff --git a/modules/shell/default.nix b/modules/shell/default.nix index 533ec3f7..32e15f99 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -2,5 +2,6 @@ imports = [ ./nix ./zsh + ./newsboat ]; } diff --git a/modules/shell/newsboat/default.nix b/modules/shell/newsboat/default.nix new file mode 100644 index 00000000..2f4c6b0c --- /dev/null +++ b/modules/shell/newsboat/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.shell.newsboat; +in +{ + options.modules.shell.newsboat= { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + newsboat + ]; + }; +}