nix-config/home/comma/default.nix
Bruno BELANYI 032bc89779
All checks were successful
ci/woodpecker/push/check Pipeline was successful
pkgs: comma: rename 'COMMA_{,NIX}PKGS_FLAKE'
This aligns with the rust implementation of this tool [1].

[1]: 17a4f33849
2023-10-12 15:19:46 +00:00

29 lines
588 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.my.home.comma;
in
{
options.my.home.comma = with lib; {
enable = my.mkDisableOption "comma configuration";
pkgsFlake = mkOption {
type = types.str;
default = "pkgs";
example = "nixpkgs";
description = ''
Which flake from the registry should be used with
<command>nix shell</command>.
'';
};
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
ambroisie.comma
];
home.sessionVariables = {
COMMA_NIXPKGS_FLAKE = cfg.pkgsFlake;
};
};
}