nixos/modules/shell/newsboat/default.nix
2024-08-01 16:24:09 +04:00

23 lines
473 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.shell.newsboat;
in
{
options.modules.shell.newsboat= {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
newsboat
];
home-manager.users.sako = { pkgs, ...}: {
xdg.configFile = {
newsboat = {
source = ../../../config/newsboat;
recursive = true;
};
};
};
};
}