From 08bc8c864ddfe744251ab948a8930494145fbc1c Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 30 Oct 2024 01:46:11 +1100 Subject: [PATCH] nixos: add `key` to shared module to allow disabling it --- nixos/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/nixos/default.nix b/nixos/default.nix index 95d5943f..c6d1179d 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -19,13 +19,17 @@ in { extraSpecialArgs.nixosConfig = config; sharedModules = [{ - # The per-user directory inside /etc/profiles is not known by - # fontconfig by default. - fonts.fontconfig.enable = lib.mkDefault - (cfg.useUserPackages && config.fonts.fontconfig.enable); + key = "home-manager#nixos-shared-module"; - # Inherit glibcLocales setting from NixOS. - i18n.glibcLocales = lib.mkDefault config.i18n.glibcLocales; + config = { + # The per-user directory inside /etc/profiles is not known by + # fontconfig by default. + fonts.fontconfig.enable = lib.mkDefault + (cfg.useUserPackages && config.fonts.fontconfig.enable); + + # Inherit glibcLocales setting from NixOS. + i18n.glibcLocales = lib.mkDefault config.i18n.glibcLocales; + }; }]; }; }