From df9cbc4fb3d12aeeae27ca304e93ae057e562d11 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 20 Jan 2025 15:35:21 -0500 Subject: [PATCH] attempt to fix home-manager standalone (not working) --- modules/common/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/common/default.nix b/modules/common/default.nix index 6af1f50..1baef45 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -194,7 +194,18 @@ nixpkgs.config.permittedInsecurePackages = config.insecurePackages; # Pin a state version to prevent warnings - home-manager.users.${config.user}.home.stateVersion = stateVersion; home-manager.users.root.home.stateVersion = stateVersion; + + # Fix for running home-manager against the repo directly + # See: https://github.com/nix-community/home-manager/issues/2033 + home-manager.users.${config.user} = { + home.stateVersion = stateVersion; + news = { + display = "silent"; + entries = lib.mkForce [ ]; + json = lib.mkForce { "output" = { }; }; + }; + }; + }; }