From 1f0be92e0f902a897b7bf5c48ec748b4ffd1d24a Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 15 Apr 2022 20:12:56 -0400 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20niv=20update,=20hass=20upd?= =?UTF-8?q?ate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/home-assistant/default.nix | 2 +- nix/sources.json | 12 ++++++------ nix/sources.nix | 4 +++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/home-assistant/default.nix b/modules/home-assistant/default.nix index 30c57df..f831116 100644 --- a/modules/home-assistant/default.nix +++ b/modules/home-assistant/default.nix @@ -5,7 +5,7 @@ virtualisation.oci-containers = { containers = { home-assistant = { - image = "ghcr.io/home-assistant/home-assistant:2022.4.3"; + image = "ghcr.io/home-assistant/home-assistant:2022.4.4"; volumes = [ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ]; extraOptions = [ "--privileged" "--network=host" ]; diff --git a/nix/sources.json b/nix/sources.json index 832dfca..72eebe1 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -5,10 +5,10 @@ "homepage": "https://nix-community.github.io/home-manager/", "owner": "nix-community", "repo": "home-manager", - "rev": "e39a9d0103e3b2e42059c986a8c633824b96c193", - "sha256": "0i5nx4vbib5l0nlmpmfa0djcgqsypa0arxz13cbgh30vjx667mjp", + "rev": "7add9ce2e5c517fcc4b25b3ed13e7e28cd325034", + "sha256": "12wzr6f7xvyzgami0lbr3xsncg6jryabkgl59qc2fg79s951hins", "type": "tarball", - "url": "https://github.com/nix-community/home-manager/archive/e39a9d0103e3b2e42059c986a8c633824b96c193.tar.gz", + "url": "https://github.com/nix-community/home-manager/archive/7add9ce2e5c517fcc4b25b3ed13e7e28cd325034.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "niv": { @@ -29,10 +29,10 @@ "homepage": "", "owner": "NixOS", "repo": "nixpkgs", - "rev": "30d3d79b7d3607d56546dd2a6b49e156ba0ec634", - "sha256": "0x5j9q1vi00c6kavnjlrwl3yy1xs60c34pkygm49dld2sgws7n0a", + "rev": "d08394e7cd5c7431a1e8f53b7f581e74ee909548", + "sha256": "04s6ajl82zgxic20ymcz8b9a8sr14p7c69f1axvagypcmjnqz47i", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/30d3d79b7d3607d56546dd2a6b49e156ba0ec634.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/d08394e7cd5c7431a1e8f53b7f581e74ee909548.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "sops-nix": { diff --git a/nix/sources.nix b/nix/sources.nix index 1938409..41af0c6 100644 --- a/nix/sources.nix +++ b/nix/sources.nix @@ -31,8 +31,10 @@ let if spec ? branch then "refs/heads/${spec.branch}" else if spec ? tag then "refs/tags/${spec.tag}" else abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!"; + submodules = if spec ? submodules then spec.submodules else false; in - builtins.fetchGit { url = spec.repo; inherit (spec) rev; inherit ref; }; + builtins.fetchGit { url = spec.repo; inherit (spec) rev; inherit ref; } + // (if builtins.compareVersions builtins.nixVersion "2.4" >= 0 then { inherit submodules; } else {}); fetch_local = spec: spec.path;