module v3
This commit is contained in:
parent
a8822d7581
commit
bbf0e547e6
2 changed files with 17 additions and 18 deletions
13
flake.nix
13
flake.nix
|
|
@ -8,20 +8,19 @@
|
|||
inputs.gomod2nix.inputs.flake-utils.follows = "flake-utils";
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, flake-utils, gomod2nix }:
|
||||
(flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
(flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
callPackage = pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage;
|
||||
in
|
||||
{
|
||||
callPackage =
|
||||
pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage;
|
||||
in {
|
||||
packages.default = callPackage ./. {
|
||||
inherit (gomod2nix.legacyPackages.${system}) buildGoApplication;
|
||||
};
|
||||
devShells.default = callPackage ./shell.nix {
|
||||
inherit (gomod2nix.legacyPackages.${system}) mkGoEnv gomod2nix;
|
||||
};
|
||||
})) // {
|
||||
nixosModules.default = import ./module.nix inputs;
|
||||
})
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ let
|
|||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
cfg = config.services.birdtown-visit-counter;
|
||||
inherit (lib) types mkOption mkIf;
|
||||
package = inputs.self.packages."${system}".birdtown-visit-counter;
|
||||
package = inputs.self.packages."${system}".default;
|
||||
in {
|
||||
options.services.birdtown-visit-counter = {
|
||||
enable = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue