attempt to fix home-manager standalone (not working)

This commit is contained in:
Noah Masur 2025-01-20 15:35:21 -05:00
parent a4b5e05f8f
commit df9cbc4fb3
No known key found for this signature in database

View File

@ -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" = { }; };
};
};
};
}