Skip to content

Commit

Permalink
Move the package option to the top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
ardek66 committed Oct 25, 2022
1 parent a1b780e commit 54ffea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
overlay = import ./overlay.nix;
pkgs = import nixpkgs { inherit system; overlays = [ flake-nimble.overlay overlay ]; };
in rec {
nixosModules.kinoplex = pkgs.callPackage ./system/module.nix { };
nixosModules.kinoplex = import ./system/module.nix;
nixosModules.default = nixosModules.kinoplex;

overlays.default = overlay;
Expand Down
10 changes: 5 additions & 5 deletions system/module.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ pkgs, lib, config, ... }:
with lib;
{
options.package = mkOption {
type = types.package;
description = "The Kinoplex package to use";
};

options.services.kinoplex = {
enable = mkEnableOption "kinoplex";

package = mkOption {
type = types.package;
description = "The Kinoplex package to use";
};

user = mkOption {
type = types.str;
default = "kino";
Expand Down

0 comments on commit 54ffea4

Please sign in to comment.