Skip to content

Commit 1d6bb50

Browse files
committed
use final raspberry-pi-nix commit and add easee_hass
1 parent 3148566 commit 1d6bb50

File tree

7 files changed

+86
-33
lines changed

7 files changed

+86
-33
lines changed

darwin-modules/nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'';
1111

1212
settings = {
13-
trusted-users = [ "@staff" ];
13+
trusted-users = [ config.mainUser ];
1414
substituters = [
1515
"https://esselius.cachix.org"
1616
"https://nix-community.cachix.org"

flake.lock

Lines changed: 34 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
nixpkgs-darwin.follows = "nixpkgs-unstable";
1818
nixpkgs-nixos.url = "github:NixOS/nixpkgs/nixos-24.11";
1919

20-
raspberry-pi-nix.url = "github:tstat/raspberry-pi-nix/v0.4.1";
20+
raspberry-pi-nix.url = "github:tstat/raspberry-pi-nix";
2121
raspberry-pi-nix.inputs.nixpkgs.follows = "nixpkgs-nixos";
2222
authentik-nix = {
2323
url = "github:nix-community/authentik-nix/version/2025.2.1";
@@ -146,6 +146,17 @@
146146
storageMode = "local";
147147
localStorageDir = ./. + "/secrets/rekeyed/adama";
148148
};
149+
150+
fileSystems = {
151+
"/" = {
152+
device = "/dev/disk/by-label/NIXOS_SD";
153+
fsType = "ext4";
154+
};
155+
"/boot/firmware" = {
156+
device = "/dev/disk/by-label/FIRMWARE";
157+
fsType = "vfat";
158+
};
159+
};
149160
}
150161
inputs.home-manager-nixos.nixosModules.home-manager
151162
({ config, ... }: {

nixos-modules/profiles/smarthome.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ in
6161
enable = true;
6262
customComponents = [
6363
pkgs.audi_connect_ha
64+
pkgs.easee_hass
6465
];
6566
extraComponents = [
6667
"zha"

overlays.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ in
99
passport-openidconnect = (prev.callPackage ./pkgs/passport-openidconnect { }).package;
1010
};
1111
audi_connect_ha = prev.callPackage ./pkgs/audi_connect_ha.nix { };
12+
easee_hass = unstable-pkgs.callPackage ./pkgs/easee_hass.nix { };
1213

1314
darwin = prev.darwin.overrideScope (_: _: {
1415
inherit (unstable-pkgs.darwin) linux-builder;

pkgs/easee_hass.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{ fetchFromGitHub
2+
, buildHomeAssistantComponent
3+
, home-assistant
4+
, python313Packages
5+
,
6+
}:
7+
8+
buildHomeAssistantComponent rec {
9+
owner = "nordicopen";
10+
domain = "easee";
11+
version = "0.9.67";
12+
13+
src = fetchFromGitHub {
14+
inherit owner;
15+
repo = "easee_hass";
16+
tag = "v${version}";
17+
hash = "sha256-psRr3cJ/sK/Z0dgB27GbW0qAHH2vJt+TdxqDB+Zhkc0=";
18+
};
19+
20+
dependencies = [
21+
(python313Packages.callPackage ./pyeasee.nix { })
22+
];
23+
nativeBuildInputs = [
24+
home-assistant.python.pkgs.bump2version
25+
];
26+
}

pkgs/pyeasee.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{ buildPythonPackage, fetchPypi }:
2+
3+
buildPythonPackage rec {
4+
pname = "pyeasee";
5+
version = "0.8.11";
6+
7+
src = fetchPypi {
8+
inherit pname version;
9+
hash = "sha256-+g3g8yGBVJdABHqt/w7Wq1gh+nqMF3a+2G3MW4yWeGg=";
10+
};
11+
}

0 commit comments

Comments
 (0)