Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
# Build with: | |
# NIX_PATH=nixpkgs=$HOME/src/nixpkgs nix-build --no-link '<nixpkgs/nixos>' -A config.system.build.tarball -I nixos-config=thisfile.nix | |
# You can also use | |
# -A config.system.build.toplevel | |
# to build something you can browse locally (that uses symlinks into your nix store). | |
{config, pkgs, ...}: | |
{ | |
# We need no bootloader, because the Chromebook can't use that anyway. | |
boot.loader.grub.enable = false; |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/device.h> | |
#include <linux/init.h> | |
#include <linux/fs.h> | |
#include <linux/mm.h> | |
#include <asm/uaccess.h> | |
#define MAX_SIZE (PAGE_SIZE * 2) /* max size mmaped to userspace */ | |
#define DEVICE_NAME "mchar" |
Nix can be used to build any kind of package. But here I'm just going to focus on the simple C&C++ case.
Firstly we have to know that the final built packages will located inside /nix/store
. Which is globally readable directory of all build inputs and build outputs of the Nix system. The emphasis is on readable, not writable, that is /nix/store
is meant to be modified by the user or programs except for the Nix system utilities. This centralises the management of packages, and keeps our packages and package configuration consistent.
So what exactly are we trying to build. Our goal is to build a directory that will be located in /nix/store/*-package-version/
, where *
is the hash of the package. Preferably a version
is also available, but some C&C++ packages don't have versions, so in that case, there's only /nix/store/*-package/
.
What will be inside this directory? It follows the GNU Coding Standards descri
#!/bin/bash | |
# popup a small notification with 'notify-send' | |
dis=`formail -X From: -X Subject:` | |
from=`echo "$dis" | formail -X From:` | |
sub=`echo "$dis" | formail -X Subject:` | |
# tweaks < > are special | |
from=${from//</\(} | |
from=${from//>/\)} | |
from=${from//&/\.} |