Files
nix-tutorial/modules/deep-dive/default.nix
2026-02-25 12:28:00 -05:00

18 lines
336 B
Nix

{ pkgs, lib, ... }: {
options = {
scripts.output = lib.mkOption {
type = lib.types.package;
};
};
config = {
scripts.output = pkgs.writeShellApplication {
name = "map";
runtimeInputs = with pkgs; [ curl feh ];
text = ''
${./map.sh} size=640x640 scale=2 | feh -
'';
};
};
}