| 15 Nov 2021 |
seeMee | In reply to @hexa:lossy.network if you run nixos-stable check the page on the nixos.wiki I am running stable/unstable hibrid. but I will start from wiki. thx | 20:17:54 |
seeMee | I wanted to build something very basic to start from, so all I did - enabled hass, set nginx and postgres and now after of pytestcheckphase I am starting to worry about frying my intel nuc cause it seems it's preparing to fly 😅 and it's only 50% in with 2.5G downloaded. did I misconfigure something or is this expected? | 23:05:52 |
@hexa:lossy.network | haha | 23:06:55 |
@hexa:lossy.network | you did override services.home-assistant.package? | 23:07:04 |
@hexa:lossy.network | https://search.nixos.org/options?channel=unstable&show=services.home-assistant.package&from=0&size=50&sort=relevance&type=packages&query=home-assistant.package | 23:07:34 |
@hexa:lossy.network | we disable the checks via the package attribute by default, if you overwrite it you have to disable them yourself | 23:07:58 |
seeMee | oh I saw that line, skipped it, as I did not want to copy paste many things and then have no clue what those options do. well now I know 😅 | 23:13:07 |
@hexa:lossy.network | the start is a bit quirky, it gets better though | 23:17:36 |
@hexa:lossy.network | also home-assistant on nixos works a bit differently. it will be the only source of dependencies, there will be no pip installs from home-assistants end. | 23:18:21 |
@hexa:lossy.network | for a component to be supported it needs to appear in the config attribute set, even if it does not have a yaml config. | 23:18:49 |
| 16 Nov 2021 |
seeMee | In reply to @hexa:lossy.network we disable the checks via the package attribute by default, if you overwrite it you have to disable them yourself not sure if I did it correctly but surely learned some nix along the way. this got my flake to successfully build:
services.home-assistant = {
enable = true;
package = let
homeAssistant = unstable.home-assistant.overrideAttrs (oldAttrs: {
tests = [ ];
doInstallCheck = false;
});
in
homeAssistant.override {
extraPackages = ps: [
ps.psycopg2
];
};
};
| 09:47:01 |
@hexa:lossy.network | no need to set tests, not sure what is supposed to do | 09:47:26 |
@hexa:lossy.network | and you can nest overrides | 09:47:49 |
@hexa:lossy.network | package = (pkgs.home-assistant.override {
extraPackages = ps: with ps; [ psycopg2 ];
}).overrideAttrs (old: {
patches = old.patches ++ [
./patches/mpd-browser.patch
./patches/warnwetter.patch
./patches/static-symlinks.patch
];
doCheck = false;
dontStrip = true;
doInstallCheck = false;
});
| 09:48:02 |
seeMee | yeah I was stiching many excerpts from many repos 😅 | 09:48:18 |
@hexa:lossy.network | doCheck/dontStrip are legacy settings in my override 😀 | 09:48:27 |
@hexa:lossy.network | that's how one starts out, yeah | 09:48:39 |
seeMee | In reply to @hexa:lossy.network
package = (pkgs.home-assistant.override {
extraPackages = ps: with ps; [ psycopg2 ];
}).overrideAttrs (old: {
patches = old.patches ++ [
./patches/mpd-browser.patch
./patches/warnwetter.patch
./patches/static-symlinks.patch
];
doCheck = false;
dontStrip = true;
doInstallCheck = false;
});
oh I like this more! thx | 09:48:51 |
@hexa:lossy.network | * package = (pkgs.home-assistant.override {
extraPackages = ps: with ps; [ psycopg2 ];
}).overrideAttrs (old: {
patches = old.patches ++ [
./patches/mpd-browser.patch
./patches/warnwetter.patch
./patches/static-symlinks.patch
];
doInstallCheck = false;
});
| 09:48:52 |
@hexa:lossy.network | * package = (pkgs.home-assistant.override {
extraPackages = ps: with ps; [ psycopg2 ];
}).overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [] ++ [
./patches/mpd-browser.patch
./patches/warnwetter.patch
./patches/static-symlinks.patch
];
doInstallCheck = false;
});
| 09:51:06 |
@hexa:lossy.network | I'll update the wiki | 09:51:33 |
seeMee | nice, it started and I was able to get to onboarding page. although it cannot save my settings. should I be defining them in code instead of through web? | 10:13:36 |
@hexa:lossy.network | What error are you seeing | 10:28:23 |
@hexa:lossy.network | Haven't done onboarding in a while | 10:28:33 |
@hexa:lossy.network | It might need some weather provider for example | 10:29:09 |
@hexa:lossy.network | * It might need some specific weather provider for example | 10:29:20 |
seeMee | in a screen when I added altitude, home name and currency and press next got a pop up saying - Failed to save: undefined | 10:30:23 |
@hexa:lossy.network | Check the journal | 10:30:47 |
seeMee | then I tried loading url and onboarding screen in gone and now I am on HA | 10:30:51 |
@hexa:lossy.network | Ok | 10:31:03 |