nixos-configs/homeModules/templates.nix

18 lines
418 B
Nix
Raw Permalink Normal View History

{ lib, config, ... }:
2025-09-14 13:36:45 +02:00
{
options.my.templates.enable = lib.mkEnableOption "file templates";
config = lib.mkIf config.my.templates.enable {
home.file = {
"Templates/Empty file".text = "";
"Templates/Empty bash script".text = ''
#!/usr/bin/env bash
# abort on error, undefined variables
set -eu
# print commands before execution
set -x
'';
};
2025-09-14 13:36:45 +02:00
};
}