Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/nixos/modules/programs/bcc.nix

10 lines
237 B
Nix
Raw Normal View History

bcc: move from linux-kernels packages to normal packages bcc doesn't really need kernel itself, it just cares about module path. It's actually better to use /run/booted-system/kernel-modules/lib/modules for two reasons: - no need to rebuild bcc for each new kernel - can use a newer bcc with a booted kernel that doesn't match the current system
2021-12-04 00:11:22 +09:00
{ config, pkgs, lib, ... }:
nixos/bcc: init module Looks trival, but it is easy to make the mistake to add linuxPackages.bcc to systemPackages, which breaks if the not the default kernel is used.
2017-09-29 15:13:34 +01:00
{
options.programs.bcc.enable = lib.mkEnableOption "bcc";
config = lib.mkIf config.programs.bcc.enable {
bcc: move from linux-kernels packages to normal packages bcc doesn't really need kernel itself, it just cares about module path. It's actually better to use /run/booted-system/kernel-modules/lib/modules for two reasons: - no need to rebuild bcc for each new kernel - can use a newer bcc with a booted kernel that doesn't match the current system
2021-12-04 00:11:22 +09:00
environment.systemPackages = [ pkgs.bcc ];
boot.extraModulePackages = [ pkgs.bcc ];
nixos/bcc: init module Looks trival, but it is easy to make the mistake to add linuxPackages.bcc to systemPackages, which breaks if the not the default kernel is used.
2017-09-29 15:13:34 +01:00
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 5862ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API