I guess lib and pkgs.lib aren't the same...?
This commit is contained in:
parent
65241635b2
commit
788fb87fdc
|
@ -1,5 +1,5 @@
|
||||||
{pkgs, ...}: let
|
{lib, ...}: let
|
||||||
inherit (pkgs.lib) mkDefault;
|
inherit (lib) mkDefault;
|
||||||
in {
|
in {
|
||||||
networking.networkmanager.enable = mkDefault true;
|
networking.networkmanager.enable = mkDefault true;
|
||||||
systemd.services.NetworkManager-wait-online.enable = mkDefault false;
|
systemd.services.NetworkManager-wait-online.enable = mkDefault false;
|
||||||
|
|
|
@ -17,6 +17,27 @@
|
||||||
inputs.hardware.nixosModules.common-pc-ssd
|
inputs.hardware.nixosModules.common-pc-ssd
|
||||||
outputs.nixosModules.pipewire-low-latency
|
outputs.nixosModules.pipewire-low-latency
|
||||||
|
|
||||||
|
({
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.services.myservice;
|
||||||
|
in {
|
||||||
|
options.services.myservice = {
|
||||||
|
enable = mkEnableOption "Enables the api.lyte.dev service";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
networking.hostName = "anything-to-test";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
{
|
||||||
|
services.myservice.enable = true;
|
||||||
|
}
|
||||||
|
|
||||||
desktop-usage
|
desktop-usage
|
||||||
podman
|
podman
|
||||||
postgres
|
postgres
|
||||||
|
|
|
@ -13,19 +13,20 @@ in {
|
||||||
({
|
({
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
inherit (pkgs) lib;
|
with lib; let
|
||||||
cfg = config.services.myservice;
|
cfg = config.services.myservice;
|
||||||
in {
|
in {
|
||||||
options.services.myservice = {
|
options.services.myservice = {
|
||||||
enable = lib.mkEnableOption "Enables the api.lyte.dev service";
|
enable = mkEnableOption "Enables the api.lyte.dev service";
|
||||||
};
|
|
||||||
|
|
||||||
config =
|
|
||||||
lib.mkIf cfg.enable {
|
|
||||||
};
|
};
|
||||||
})
|
|
||||||
|
config =
|
||||||
|
mkIf cfg.enable {
|
||||||
|
};
|
||||||
|
})
|
||||||
{
|
{
|
||||||
services.myservice.enable = true;
|
services.myservice.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue