added bashrc

This commit is contained in:
2026-10-24 15:12:39 +01:00
parent 0e3718ab22
commit 3f8661d070
4 changed files with 55 additions and 1 deletions

37
flake.lock generated
View File

@@ -64,11 +64,46 @@
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1791966044,
"narHash": "sha256-t1hT8UW97rFCWCJO7/pClvu0AhLN5V3uir2M0ic4w/Q=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "319e4cebef10cbb636c6ea392137b52ad105336a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"import-tree": "import-tree",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"wrappers": "wrappers"
}
},
"wrappers": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1792532408,
"narHash": "sha256-rasFTcWJo7CdUaCFcxcDTnMWlY6WxZo/X6EsbEqgIpM=",
"owner": "nix-community",
"repo": "nix-wrapper-modules",
"rev": "e40208b34e08f764e6b972eb0ee919706e960eb2",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-wrapper-modules",
"type": "github"
}
}
},

View File

@@ -8,6 +8,9 @@
# Flake parts utils
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
# Nix Wrapper Modules
wrappers.url = "github:nix-community/nix-wrapper-modules";
};
# Default import-tree output

View File

@@ -0,0 +1,2 @@
export SOME="some"
# other bash stuff

View File

@@ -0,0 +1,14 @@
{inputs, ...}: {
perSystem = {pkgs, ...}: {
packages = {
example = pkgs.hello;
bash = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = pkgs.bash;
flags = {
"--rcfile" = ./bashrc;
};
};
};
};
}