Compare commits
2 commits
032bc89779
...
2d36ffd96d
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d36ffd96d | |||
| a5febc40e4 |
2 changed files with 1 additions and 15 deletions
|
|
@ -5,25 +5,11 @@ 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_PKGS_FLAKE = cfg.pkgsFlake;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,4 +30,4 @@ if [ -z "$PROGRAM" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
nix shell "${COMMA_PKGS_FLAKE:-nixpkgs}#$PROGRAM" -c "$@"
|
||||
nix shell "${COMMA_NIXPKGS_FLAKE:-nixpkgs}#$PROGRAM" -c "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue