From aad53d50725bebfc21817acb526365bea83260fc Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 3 Jan 2025 16:15:57 +0100 Subject: [PATCH] hosts/krypton: Add etesync-dav --- flake.lock | 17 +++++++++++++++++ flake.nix | 2 ++ flake/overlay.nix | 3 +++ hosts/krypton/configuration.nix | 1 + hosts/krypton/etesync-dav.nix | 10 ++++++++++ 5 files changed, 33 insertions(+) create mode 100644 hosts/krypton/etesync-dav.nix diff --git a/flake.lock b/flake.lock index 808cce4..5df4e69 100644 --- a/flake.lock +++ b/flake.lock @@ -476,6 +476,22 @@ "type": "github" } }, + "nixpkgs-0dc1c7": { + "locked": { + "lastModified": 1725718979, + "narHash": "sha256-TNj62uDY5ilnYu0Jne8/IIunfh1kf6kDPY9KdS+Eotw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0dc1c7294c13f5d1dd6eccab4f75d268d7296efe", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0dc1c7294c13f5d1dd6eccab4f75d268d7296efe", + "type": "github" + } + }, "nixpkgs-regression": { "locked": { "lastModified": 1643052045, @@ -589,6 +605,7 @@ "nixos-exporter": "nixos-exporter", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_3", + "nixpkgs-0dc1c7": "nixpkgs-0dc1c7", "nurausstieg": "nurausstieg", "scan-to-gpg": "scan-to-gpg", "solid-xmpp-alarm": "solid-xmpp-alarm", diff --git a/flake.nix b/flake.nix index 1763ede..0000bef 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,8 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + # for etesync-dav + nixpkgs-0dc1c7.url = "github:NixOS/nixpkgs/0dc1c7294c13f5d1dd6eccab4f75d268d7296efe"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; berlinerbaeder-exporter = { url = "git+https://git.clerie.de/clerie/berlinerbaeder-exporter.git"; diff --git a/flake/overlay.nix b/flake/overlay.nix index d50a81d..3a91216 100644 --- a/flake/overlay.nix +++ b/flake/overlay.nix @@ -1,4 +1,5 @@ { self +, nixpkgs-0dc1c7 , berlinerbaeder-exporter , bij , chaosevents @@ -10,6 +11,8 @@ , ... }@inputs: final: prev: { + inherit (nixpkgs-0dc1c7.legacyPackages.${final.system}) + etesync-dav; inherit (berlinerbaeder-exporter.packages.${final.system}) berlinerbaeder-exporter; inherit (bij.packages.${final.system}) diff --git a/hosts/krypton/configuration.nix b/hosts/krypton/configuration.nix index 2886bc8..64a0390 100644 --- a/hosts/krypton/configuration.nix +++ b/hosts/krypton/configuration.nix @@ -9,6 +9,7 @@ ./android.nix ./backup.nix + ./etesync-dav.nix #./initrd.nix ./network.nix ./programs.nix diff --git a/hosts/krypton/etesync-dav.nix b/hosts/krypton/etesync-dav.nix new file mode 100644 index 0000000..43df56d --- /dev/null +++ b/hosts/krypton/etesync-dav.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + + services.etesync-dav = { + enable = true; + apiUrl = "https://etebase.clerie.de"; + }; + +}