on Use multiple path/fetchers in `home.file."path".source` · c/nix · 2 pts · 179dFor instance, it allows the option to be configured in home-manager, while plugins are set via a home-manager option.
on Use multiple path/fetchers in `home.file."path".source` · c/nix · 2 pts · 185dpkgs.symlinkJoin might help: {pkgs, ...}: let plugin1 = pkgs.fetchFromGitHub { ... }; plugin2 = pkgs.fetchFromGitHub { ... }; in { xdg.dataFile = { "krita/pykrita" = { enable = true; source = pkgs.symlinkJoin { name = "pykrita"; paths = [ plugin1 plugin2 ]; }; recursive = true; }; }; } You might also want to manage your plugins in separate files: # krita-plugins.nix { config, lib, pkgs, ... }: with lib; { options.yourOptions.krita.plugins = mkOption { type = types.listOf types.path; default = []; }; config = { xdg.dataFile = { "krita/pykrita" = { enable = true; source = pkgs.symlinkJoin { name = "pykrita"; paths = config.yourOptions.krita.plugins; }; recursive = true; }; }; }; } # kirta-plugin-a.nix {pkgs, ...}: { yourOptions.krita.plugins = [ (pkgs.fetchFromGitHub { ... }) ]; } # kirta-plugin-b.nix {pkgs, ...}: { yourOptions.krita.plugins = [ (pkgs.fetchFromGitHub { ... }) ]; }
on How do I make a dev shell with wlroots as a library? [RESOLVED] · c/nix · 2 pts · 188dDo you know about pkg-config --cflags? devShells.${system}.default = pkgs.mkShell { buildInputs = with pkgs; [ pkg-config clang wlroots_0_19 ]; }; pkg-config --cflags wlroots-0.19 outputs -I/nix/store/pkg-hash-wlroots-0.19.0/include/wlroots-0.19 clang your-file.c $(pkg-config --cflags wlroots-0.19) should resolve #include <wlr/backend.h>
on Here's a `nixos-rebuild` wrapper script that formats and colorizes traces · c/nix · 1 pts · 197dMay I ask what your full nixos-rebuild command is?
on (home manager) can i somehow put `~/.local/bin` before `~/.nix-profile/bin` in my `$PATH`? · c/nix · 3 pts · 203d programs.fish.enable = true; # Enable your shell home.sessionPath = ["$HOME/.local/bin"]; I found the option by searching for "PATH" at home-manager-options.extranix.com. home.sessionPath will generate hm-session-vars files for different shells. You can read it by cat ~/.nix-profile/etc/profile.d/hm-session-vars.sh. Enabling the shell is required for the respective hm-session-vars file to be sourced into the shell.
For instance, it allows the option to be configured in home-manager, while plugins are set via a home-manager option.
pkgs.symlinkJoin might help:
You might also want to manage your plugins in separate files:
Do you know about
pkg-config --cflags?pkg-config --cflags wlroots-0.19outputs-I/nix/store/pkg-hash-wlroots-0.19.0/include/wlroots-0.19clang your-file.c $(pkg-config --cflags wlroots-0.19)should resolve#include <wlr/backend.h>May I ask what your full
nixos-rebuildcommand is?I found the option by searching for "PATH" at home-manager-options.extranix.com.
home.sessionPathwill generatehm-session-varsfiles for different shells. You can read it bycat ~/.nix-profile/etc/profile.d/hm-session-vars.sh.Enabling the shell is required for the respective
hm-session-varsfile to be sourced into the shell.