attempt to fix field type

This commit is contained in:
LordGrimmauld 2024-03-16 18:24:37 +01:00
parent 1816d49646
commit 5e620c1215

View File

@ -1,8 +1,8 @@
{ pkgs, config, lib, ... }: let
cfg = config.grimmShared;
in {
config = with cfg; lib.mkIf (enable && network) lib.mkMerge [
{
config = lib.mkMerge [
(with cfg; lib.mkIf (enable && network) {
networking.networkmanager.enable = true;
networking.useDHCP = lib.mkDefault true;
networking.firewall.enable = true;
@ -13,11 +13,11 @@ in {
wireguard-tools
bluetuith
];
}
(lib.mkIf cfg.graphical {
})
(with cfg; lib.mkIf (enable && network && graphical) {
services.blueman.enable = true;
})
(lib.mkIf cfg.sound {
(with cfg; lib.mkIf (enable && network && sound) {
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [ "network.target" "sound.target" ];