Pass package to demo config with overlay
This commit is contained in:
parent
f08af933cc
commit
b68b7b75fa
|
@ -1,4 +1,4 @@
|
||||||
flake: { pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
|
@ -17,7 +17,7 @@ flake: { pkgs, ... }:
|
||||||
};
|
};
|
||||||
|
|
||||||
# Put intake on both users' PATH
|
# Put intake on both users' PATH
|
||||||
environment.systemPackages = [ flake.packages.${pkgs.stdenv.hostPlatform.system}.default ];
|
environment.systemPackages = [ pkgs.intake ];
|
||||||
|
|
||||||
# Set up intake for both users with an entry point at port 8080
|
# Set up intake for both users with an entry point at port 8080
|
||||||
services.intake = {
|
services.intake = {
|
||||||
|
|
|
@ -59,14 +59,20 @@
|
||||||
description = "A basic intake source config";
|
description = "A basic intake source config";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosModules.default = {
|
||||||
|
options = {};
|
||||||
|
config.nixpkgs.overlays = [ self.overlays.default ];
|
||||||
|
};
|
||||||
|
|
||||||
nixosModules.intake = import ./module.nix self;
|
nixosModules.intake = import ./module.nix self;
|
||||||
|
|
||||||
nixosConfigurations."demo" = makeOverridable nixosSystem {
|
nixosConfigurations."demo" = makeOverridable nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
nixos-shell.nixosModules.nixos-shell
|
nixos-shell.nixosModules.nixos-shell
|
||||||
|
self.nixosModules.default
|
||||||
self.nixosModules.intake
|
self.nixosModules.intake
|
||||||
(import ./demo self)
|
./demo
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue