modules/community-builder: add motd
This commit is contained in:
parent
edeaf0e3a5
commit
49f6540544
3 changed files with 47 additions and 21 deletions
modules
|
@ -11,6 +11,8 @@
|
|||
./users.nix
|
||||
];
|
||||
|
||||
environment.etc.motd.text = config.nixCommunity.motd;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.vim
|
||||
];
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
"${inputs.self}/modules/shared/community-builder.nix"
|
||||
|
@ -6,6 +11,8 @@
|
|||
./users.nix
|
||||
];
|
||||
|
||||
users.motd = config.nixCommunity.motd;
|
||||
|
||||
environment.systemPackages = [
|
||||
# terminfo packages
|
||||
pkgs.foot.terminfo
|
||||
|
|
|
@ -1,26 +1,43 @@
|
|||
{ pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
# useful for people that want to test stuff
|
||||
environment.systemPackages = [
|
||||
pkgs.fd
|
||||
pkgs.git
|
||||
pkgs.nano
|
||||
pkgs.nix-output-monitor
|
||||
pkgs.nix-tree
|
||||
pkgs.nixpkgs-review
|
||||
pkgs.ripgrep
|
||||
pkgs.tig
|
||||
];
|
||||
options.nixCommunity.motd = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "message of the day";
|
||||
};
|
||||
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
# useful for people that want to test stuff
|
||||
environment.systemPackages = [
|
||||
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.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
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue