Skip to content

Instantly share code, notes, and snippets.

@cmiles74
Created December 20, 2017 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmiles74/f9cb11ad5be646884384ec1289ae533d to your computer and use it in GitHub Desktop.
Save cmiles74/f9cb11ad5be646884384ec1289ae533d to your computer and use it in GitHub Desktop.
Nix Configuration
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nixpkgs.config = {
# Allow proprietary packages
allowUnfree = true;
# Create an alias for the unstable channel
packageOverrides = pkgs: {
personal = import /home/cmiles/nixpkgs/default.nix {
# pass the nixpkgs config to the unstable alias
# to ensure `allowUnfree = true;` is propagated:
config = config.nixpkgs.config;
};
};
};
...ELLIDED...
environment = {
systemPackages = with pkgs; [
pkgs.mkpasswd
pkgs.emacs25-nox
pkgs.networkmanager
pkgs.xz
pkgs.squashfsTools
personal.snapd
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment