infra/modules/shared/community-builder.nix

46 lines
1,010 B
Nix

{ lib, pkgs, ... }:
{
options.nixCommunity.motd = lib.mkOption {
type = lib.types.str;
description = "message of the day";
};
config = {
nixCommunity.motd = ''
Welcome to Nix Community!
For a faster Nixpkgs clone use:
git clone --reference /var/lib/nixpkgs.git https://github.com/NixOS/nixpkgs.git
'';
# useful for people that want to test stuff
environment.systemPackages = [
pkgs.emacs
pkgs.fd
pkgs.git
pkgs.nano
pkgs.nix-output-monitor
pkgs.nix-tree
pkgs.nixpkgs-review
pkgs.ripgrep
pkgs.tig
];
programs.nix-index-database.comma.enable = true;
programs.fish.enable = true;
programs.zsh = {
enable = true;
# https://grml.org/zsh/grmlzshrc.html
# https://grml.org/zsh/grml-zsh-refcard.pdf
interactiveShellInit = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
'';
promptInit = ""; # otherwise it'll override the grml prompt
};
};
}