modules
This commit is contained in:
18
modules/deep-dive/default.nix
Normal file
18
modules/deep-dive/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ 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 -
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user