From 815401f90044ccbc540d1065cbd9d8e71a03d2c5 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Thu, 26 Mar 2026 23:31:01 +0100 Subject: [PATCH] fix module --- flake.lock | 10 +++++----- hosts/kronos/default.nix | 2 +- modules/bin-bash-wrapper.nix | 6 +----- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 78474db..3604d04 100644 --- a/flake.lock +++ b/flake.lock @@ -30,8 +30,8 @@ ] }, "locked": { - "lastModified": 1774539899, - "narHash": "sha256-LuIiEKPwQYQJF6u/vBLBpo5ZIXH0Isgpci5zWwlQns4=", + "lastModified": 1774564167, + "narHash": "sha256-sdxUQJAc5t5hbQbG0SZ4B3YehTtNiRUqDNzvO/KakZk=", "path": "/home/love/dotfiles", "type": "path" }, @@ -47,11 +47,11 @@ ] }, "locked": { - "lastModified": 1774550169, - "narHash": "sha256-cLcm8jXyhEDRHTCN1fym6+5L6Z264kj2QBpL+/yT3WI=", + "lastModified": 1774561634, + "narHash": "sha256-3q1xsREjqdVIIwQQDZQ9y0YdBzP8gAxdwKoKnZSzJtU=", "owner": "nix-community", "repo": "home-manager", - "rev": "7622882af88598b882436416bd74154826fcf742", + "rev": "7c046c63ac3b467c1d589b99d531da5b6520825a", "type": "github" }, "original": { diff --git a/hosts/kronos/default.nix b/hosts/kronos/default.nix index 0b674af..861992b 100644 --- a/hosts/kronos/default.nix +++ b/hosts/kronos/default.nix @@ -30,7 +30,7 @@ in ../../modules/bin-bash-wrapper.nix ]; - config.my.binBashWrapper.enable = true; + my.binBashWrapper.enable = true; networking.hostName = hostName; networking.hostId = "ff0b8826"; diff --git a/modules/bin-bash-wrapper.nix b/modules/bin-bash-wrapper.nix index 99ea2b8..cc0716f 100644 --- a/modules/bin-bash-wrapper.nix +++ b/modules/bin-bash-wrapper.nix @@ -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 = [