fix module

This commit is contained in:
2026-03-26 23:31:01 +01:00
parent fb4142d95d
commit 815401f900
3 changed files with 7 additions and 11 deletions

View File

@@ -4,18 +4,14 @@
pkgs,
...
}:
let
cfg = config.my.binBashWrapper;
bashWrapper = pkgs.writeShellScriptBin "bash" ''
exec /usr/bin/env bash "$@"
'';
in
{
cfg = {
enable = lib.mkEnableOption "create a /bin/bash wrapper";
};
options.my.binBashWrapper.enable = lib.mkEnableOption "create a /bin/bash wrapper";
config = lib.mkIf cfg.enable {
systemd.tmpfiles.rules = [