added bashrc
This commit is contained in:
37
flake.lock
generated
37
flake.lock
generated
@@ -64,11 +64,46 @@
|
|||||||
"type": "github"
|
"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": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"import-tree": "import-tree",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,6 +8,9 @@
|
|||||||
# Flake parts utils
|
# Flake parts utils
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
import-tree.url = "github:vic/import-tree";
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
|
||||||
|
# Nix Wrapper Modules
|
||||||
|
wrappers.url = "github:nix-community/nix-wrapper-modules";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Default import-tree output
|
# Default import-tree output
|
||||||
|
|||||||
2
modules/features/example/bashrc
Normal file
2
modules/features/example/bashrc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export SOME="some"
|
||||||
|
# other bash stuff
|
||||||
14
modules/features/example/default.nix
Normal file
14
modules/features/example/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user