20 lines
375 B
Nix
20 lines
375 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# Oh My Pi, installed alongside upstream Pi as the `omp` command.
|
|
let
|
|
user = config.user.name;
|
|
in
|
|
{
|
|
options.modules.shell.omp = {
|
|
enable = lib.mkEnableOption "Oh My Pi, a batteries-included fork of Pi";
|
|
};
|
|
|
|
config = lib.mkIf config.modules.shell.omp.enable {
|
|
home-manager.users.${user}.home.packages = [ pkgs.omp ];
|
|
};
|
|
}
|