feat(nixos): add OMP module
This commit is contained in:
20
configs/nixos/modules/shell/omp.nix
Normal file
20
configs/nixos/modules/shell/omp.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
# Oh My Pi, installed alongside upstream Pi as the `omp` command.
|
||||
let
|
||||
cfg = config.modules.shell.omp;
|
||||
user = config.user.name;
|
||||
in
|
||||
{
|
||||
options.modules.shell.omp = {
|
||||
enable = lib.mkEnableOption "Oh My Pi, a batteries-included fork of Pi";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${user}.home.packages = [ pkgs.omp ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user