Compare commits

..

2 Commits

Author SHA1 Message Date
abff2a9acb fix deprecation warning 2026-03-26 23:34:37 +01:00
815401f900 fix module 2026-03-26 23:31:01 +01:00
4 changed files with 8 additions and 12 deletions

10
flake.lock generated
View File

@@ -30,8 +30,8 @@
]
},
"locked": {
"lastModified": 1774539899,
"narHash": "sha256-LuIiEKPwQYQJF6u/vBLBpo5ZIXH0Isgpci5zWwlQns4=",
"lastModified": 1774564269,
"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": {

View File

@@ -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";

View File

@@ -100,7 +100,7 @@
};
environment.systemPackages = with pkgs; [
inputs."lolcat++".packages.${pkgs.system}.default
inputs."lolcat++".packages.${pkgs.stdenv.hostPlatform.system}.default
file
cowsay

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 = [