infra/modules/shared/community-builder.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

2024-09-24 10:31:46 +10:00
{ lib, pkgs, ... }:
2024-09-05 17:59:59 +10:00
{
2024-09-24 10:31:46 +10:00
options.nixCommunity.motd = lib.mkOption {
type = lib.types.str;
description = "message of the day";
};
config = {
nixCommunity.motd = ''
Welcome to Nix Community!
Please join our matrix room:
https://matrix.to/#/#nix-community:nixos.org
2024-09-24 10:31:46 +10:00
For a faster Nixpkgs clone use:
git clone --reference /var/lib/nixpkgs.git https://github.com/NixOS/nixpkgs.git
2024-09-05 17:59:59 +10:00
'';
2024-09-24 10:31:46 +10:00
# useful for people that want to test stuff
environment.systemPackages =
[
pkgs.btop
pkgs.emacs
pkgs.fd
pkgs.git
pkgs.nano
pkgs.nix-output-monitor
pkgs.nix-tree
pkgs.nixpkgs-review
pkgs.ripgrep
pkgs.tig
]
++ builtins.filter (lib.meta.availableOn pkgs.stdenv.hostPlatform) [
pkgs.foot.terminfo
pkgs.kitty.terminfo
#pkgs.termite.terminfo
pkgs.wezterm.terminfo
];
2024-09-24 10:31:46 +10:00
programs.nix-index-database.comma.enable = true;
programs.fish = {
enable = true;
# puts /run/current-system/sw/bin in PATH for remote builds on darwin
useBabelfish = true;
};
2024-09-24 10:31:46 +10:00
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
};
2024-09-05 17:59:59 +10:00
};
}