mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
treewide: fix statix errors
This commit is contained in:
parent
a4b8c2b8da
commit
743d7eead9
48 changed files with 72 additions and 82 deletions
|
@ -2,7 +2,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.services.home-assistant;
|
||||
domain = config.networking.domain;
|
||||
inherit (config.networking) domain;
|
||||
in
|
||||
{
|
||||
options.my.services.home-assistant = with lib; {
|
||||
|
@ -83,14 +83,12 @@ in
|
|||
services.home-assistant = {
|
||||
enable = true;
|
||||
|
||||
package = cfg.package;
|
||||
inherit (cfg) package;
|
||||
|
||||
config = {
|
||||
homeassistant = {
|
||||
name = "Home";
|
||||
latitude = cfg.latitude;
|
||||
longitude = cfg.longitude;
|
||||
elevation = cfg.elevation;
|
||||
inherit (cfg) latitude longitude elevation;
|
||||
unit_system = "metric";
|
||||
time_zone = cfg.timezone;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue