-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🏡 Home Assistant Refresh #340251
base: master
Are you sure you want to change the base?
🏡 Home Assistant Refresh #340251
Conversation
When sending SIGHUP to hass it will exit with code 100, which is the codified exit code to trigger a restart. This is useful, because it can allow triggering a restart from within the frontend. It was previously assumed that it would result in a reload, which would keep the same interpreter process intact. That is not the case and so the assumption that the PID would stay the same was flawed and only succeeded due to race conditions.
b59fe97
to
7593efc
Compare
The backup module is part of the default integrations and as such it will always be loaded. Replace it with the prometheus module, for which this is probably unlikely to ever become the case.
In particular replace propagatedBuildInputs with dependencies.
…alling Kill the tedious work of setting up attributes manually.
7593efc
to
02cc60e
Compare
I was going to open a new PR for this: kira-bruneau@c0ed7c1, but I noticed that this refresh PR was just opened. Would it be ok to include those changes here? |
Oh wait nvm, I thought this touched the package, I'll just open a new PR: #340324 |
ExecReload = (escapeSystemdExecArgs [ | ||
(lib.getExe' pkgs.coreutils "kill") | ||
"-HUP" | ||
]) + " $MAINPID"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The escapeSystemdExecArgs is superfluous here as the input is not user controlled and will never escape something.
@@ -398,7 +406,7 @@ in { | |||
themes = "!include_dir_merge_named themes"; | |||
}; | |||
http = {}; | |||
feedreader.urls = [ "https://nixos.org/blogs.xml" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI the new URL would be https://nixos.org/blog/feed.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an example, and I think pointing to the nix tag at lobsters is much more interesting than the announcements on the homepage.
@@ -11,7 +44,7 @@ let | |||
# options shown in settings. | |||
# We post-process the result to add support for YAML functions, like secrets or includes, see e.g. | |||
# https://www.home-assistant.io/docs/configuration/secrets/ | |||
filteredConfig = lib.converge (lib.filterAttrsRecursive (_: v: ! elem v [ null ])) (lib.recursiveUpdate customLovelaceModulesResources (cfg.config or {})); | |||
filteredConfig = converge (filterAttrsRecursive (_: v: ! elem v [ null ])) (recursiveUpdate lovelaceResourceConfig (cfg.config or {})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filteredConfig = converge (filterAttrsRecursive (_: v: ! elem v [ null ])) (recursiveUpdate lovelaceResourceConfig (cfg.config or {})); | |
filteredConfig = converge (filterAttrsRecursive (_: v: v != null)) (recursiveUpdate lovelaceResourceConfig (cfg.config or {})); |
Description of changes
Resolve a bunch of maintenance tasks:
with lib
extraArgs
to the command linecustom
option prefixes (e.g. fromcustomLovelaceModules
) and make options names more concreterunTest
instead ofhandleTest
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.