Skip to content

Commit

Permalink
Export nix module as moe, module properly uses package
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Feb 10, 2024
1 parent 8efaf93 commit 11021a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
packages.moe = pkgs.callPackage ./nix/package.nix { inherit version; };
defaultPackage = self.packages.${system}.moe;
}
);
) // {
nixosModule = import ./nix/module.nix;
};
}
6 changes: 3 additions & 3 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
with lib;
with types;
let
cfg = config.services.moe;
cfg = config.moe;
in
{
options.services.moe = {
options.moe = {
enable = mkEnableOption "Enable the moe service";
package = mkOption {
type = package;
default = (pkgs.callPackage ./package.nix { });
default = pkgs.moe;
};
group = mkOption {
type = str;
Expand Down

0 comments on commit 11021a9

Please sign in to comment.