Skip to content

Instantly share code, notes, and snippets.

@LisannaAtHome
Last active December 4, 2017 05:56
Show Gist options
  • Save LisannaAtHome/4227bcd2a5cf8d962fbd61b76f2bf234 to your computer and use it in GitHub Desktop.
Save LisannaAtHome/4227bcd2a5cf8d962fbd61b76f2bf234 to your computer and use it in GitHub Desktop.
Using a custom channel in a custom module with NixOS
{ config, pkgs, ... }:
let
myCustomChannel = import <myCustomChannel>
{ inherit pkgs; };
in {
imports = [ (import <myCustomChannel/myCustomModule.nix> { inherit myCustomChannel; }) ];
}
{ myCustomChannel }:
{ config, lib, pkgs, ... }:
let
cfg = config.services.myCustomModule;
in
{ options = ...;
config = ...;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment