added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
31
nyx/modules/extra/shared/nixos/comma/default.nix
Normal file
31
nyx/modules/extra/shared/nixos/comma/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption mkEnableOption types literalExpression;
|
||||
|
||||
cfg = config.programs.comma;
|
||||
in {
|
||||
options.programs.comma = {
|
||||
enable = mkEnableOption "comma, a wrapper to run software without installing it";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.comma.override {nix-index-unwrapped = config.programs.nix-index.package;};
|
||||
defaultText = literalExpression "pkgs.comma.override { nix-index-unwrapped = config.programs.nix-index.package; }";
|
||||
description = "Package providing the `comma` tool.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [cfg.package];
|
||||
|
||||
programs = {
|
||||
command-not-found.enable = lib.mkForce false;
|
||||
|
||||
nix-index.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue