allow ability to override nixpkgs
This commit is contained in:
parent
6655200f41
commit
87f69b6f5a
5 changed files with 11 additions and 4 deletions
|
@ -4,7 +4,7 @@ set -ex
|
|||
|
||||
USERNAME="root"
|
||||
IP="gerd.fricloud.dk"
|
||||
NIXPKGS=$(jq -r '.nixpkgs.url' ./shared/sources/sources.json)
|
||||
NIXPKGS=$(nix build --impure --json --expr '(import ./shared/sources).nixpkgs' | jq -r '.[].outputs.out')
|
||||
|
||||
export NIX_PATH="nixpkgs=$NIXPKGS"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, ... }:
|
||||
|
||||
let
|
||||
sources = import ./sources/sources.nix;
|
||||
sources = import ./sources;
|
||||
in {
|
||||
imports = [
|
||||
# secrets
|
||||
|
|
|
@ -72,7 +72,7 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
sources = import ./../sources/sources.nix;
|
||||
sources = import ./../sources;
|
||||
in {
|
||||
imports = [
|
||||
(sources.disko + "/module.nix")
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
sources = import ./../sources/sources.nix;
|
||||
sources = import ./../sources;
|
||||
in {
|
||||
options.mine.state.enable = mkOption {
|
||||
type = types.bool;
|
||||
|
|
7
shared/sources/default.nix
Normal file
7
shared/sources/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
let
|
||||
sources = import ./sources.nix;
|
||||
|
||||
# declare pkgs from sources
|
||||
pkgs = import sources.nixpkgs { };
|
||||
in sources // {
|
||||
}
|
Loading…
Reference in a new issue