mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-18 09:53:06 +01:00
feat(modules): add use-nixld option to common nix configuration
This commit is contained in:
parent
5c0274e681
commit
14135dfb9e
2 changed files with 14 additions and 0 deletions
|
@ -25,6 +25,9 @@
|
||||||
packages = [];
|
packages = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: look at git-sync for syncing stuff like obsidian vaults.
|
||||||
|
programs.git-credential-oauth.enable = true;
|
||||||
|
|
||||||
# Declare user packages.
|
# Declare user packages.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
### General
|
### General
|
||||||
|
@ -46,6 +49,7 @@
|
||||||
bun
|
bun
|
||||||
devenv
|
devenv
|
||||||
python39
|
python39
|
||||||
|
poetry
|
||||||
nil
|
nil
|
||||||
zed-editor
|
zed-editor
|
||||||
bruno
|
bruno
|
||||||
|
|
|
@ -11,6 +11,7 @@ in {
|
||||||
options.${namespace}.common.nix = {
|
options.${namespace}.common.nix = {
|
||||||
enable = mkEnableOption "Overwrite the default Nix configuration.";
|
enable = mkEnableOption "Overwrite the default Nix configuration.";
|
||||||
use-lix = mkEnableOption "Enable Lix as an alternative to CppNix.";
|
use-lix = mkEnableOption "Enable Lix as an alternative to CppNix.";
|
||||||
|
use-nixld = mkEnableOption "Enable the use of dynamically linked executables on nix based systems.";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -39,5 +40,14 @@ in {
|
||||||
|
|
||||||
package = mkIf cfg.use-lix pkgs.lix; # Enable LIX
|
package = mkIf cfg.use-lix pkgs.lix; # Enable LIX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Dynamic libraries for unpackaged programs
|
||||||
|
programs.nix-ld = mkIf cfg.use-nixld {
|
||||||
|
enable = true;
|
||||||
|
libraries = with pkgs; [
|
||||||
|
glibc
|
||||||
|
libcxx
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue