mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-25 20:50:44 -06:00
Compare commits
3 commits
91a720541f
...
506e9abcee
Author | SHA1 | Date | |
---|---|---|---|
506e9abcee | |||
cb6c14f81e | |||
1ca5f9688a |
3 changed files with 21 additions and 22 deletions
|
@ -30,7 +30,6 @@
|
|||
# setLdLibraryPath = true;
|
||||
# };
|
||||
|
||||
|
||||
# Load nvidia driver for Xorg and Wayland
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
|
|
|
@ -8,30 +8,26 @@
|
|||
let
|
||||
inherit (lib) mkIfIn;
|
||||
cfg = config.oizys.languages;
|
||||
|
||||
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
||||
pixi = inputs.pixi.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
config = mkIfIn "python" cfg {
|
||||
environment.systemPackages =
|
||||
let
|
||||
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
||||
pixi = inputs.pixi.packages.${pkgs.system}.default;
|
||||
in
|
||||
with pkgs;
|
||||
[
|
||||
# https://github.com/Mic92/nix-ld?tab=readme-ov-file#my-pythonnodejsrubyinterpreter-libraries-do-not-find-the-libraries-configured-by-nix-ld
|
||||
(pkgs.writeShellScriptBin "python" ''
|
||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||
exec ${python}/bin/python "$@"
|
||||
'')
|
||||
environment.systemPackages = [
|
||||
# https://github.com/Mic92/nix-ld?tab=readme-ov-file#my-pythonnodejsrubyinterpreter-libraries-do-not-find-the-libraries-configured-by-nix-ld
|
||||
(pkgs.writeShellScriptBin "python" ''
|
||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||
exec ${python}/bin/python "$@"
|
||||
'')
|
||||
|
||||
(pkgs.writeShellScriptBin "python3" ''
|
||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||
exec ${python}/bin/python "$@"
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "python3" ''
|
||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||
exec ${python}/bin/python "$@"
|
||||
'')
|
||||
|
||||
(python3.withPackages (ps: with ps; [ pip ]))
|
||||
micromamba
|
||||
pixi
|
||||
];
|
||||
pixi
|
||||
pkgs.micromamba
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -242,7 +242,7 @@ func Dry(verbose bool, minimal bool, rest ...string) {
|
|||
log.Info("no packages in minimal set to build")
|
||||
os.Exit(0)
|
||||
}
|
||||
cmd.Args = append(cmd.Args, drvs...)
|
||||
cmd.Args = append(cmd.Args, append(drvs, "--no-link")...)
|
||||
spinnerMsg = "evaluting for minimal build needs"
|
||||
} else {
|
||||
log.Debug("evalutating full nixosConfiguration")
|
||||
|
@ -318,6 +318,10 @@ var ignoredMap = stringSliceToMap(
|
|||
"nixos-rebuild",
|
||||
"nixos-help",
|
||||
"nixos-generate-config",
|
||||
"nixos-enter",
|
||||
"nixos-container",
|
||||
"nixos-build-vms",
|
||||
"ld-library-path",
|
||||
|
||||
"nixos-wsl-version",
|
||||
"nixos-wsl-welcome-message",
|
||||
|
|
Loading…
Reference in a new issue