Pass package to demo config with overlay

This commit is contained in:
Tim Van Baak 2023-06-20 14:01:31 -07:00
parent f08af933cc
commit b68b7b75fa
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
flake: { pkgs, ... }:
{ pkgs, ... }:
{
system.stateVersion = "22.11";
@ -17,7 +17,7 @@ flake: { pkgs, ... }:
};
# 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
services.intake = {

View File

@ -59,14 +59,20 @@
description = "A basic intake source config";
};
nixosModules.default = {
options = {};
config.nixpkgs.overlays = [ self.overlays.default ];
};
nixosModules.intake = import ./module.nix self;
nixosConfigurations."demo" = makeOverridable nixosSystem {
inherit system;
modules = [
nixos-shell.nixosModules.nixos-shell
self.nixosModules.default
self.nixosModules.intake
(import ./demo self)
./demo
];
};
};