Skip to content

Instantly share code, notes, and snippets.

@Steell
Last active February 10, 2021 18:04
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 Steell/fd30ca9259cc04ca80a3f045f7eba0ed to your computer and use it in GitHub Desktop.
Save Steell/fd30ca9259cc04ca80a3f045f7eba0ed to your computer and use it in GitHub Desktop.
NixOs module override
{ config, pkgs, ... }:
{
disabledModules = [
"services/audio/roon-server.nix"
];
imports = [
./roon-server-pinned.nix
];
...
}
args@{config, lib, pkgs, ...}:
let
pin = builtins.fetchTarball {
name = "nixos-2020-08-25";
url = "https://github.com/nixos/nixpkgs/archive/28945790d05bf78ae7979d68736b657736d9370e.tar.gz";
sha256 = "101m5zj4cr3g6slpda4m6k9yqbxf1gmdy6h1jpfbf47yrq2zs86n";
};
unstable = import pin { config = { allowUnfree = true; }; };
in
(import (pin + "/nixos/modules/services/audio/roon-server.nix") ({
pkgs = unstable;
} // (removeAttrs args ["pkgs"])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment