From a4f8d43c07e2291fd847f174e57d81e19e2f75b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 13 Jun 2021 12:05:16 +0100 Subject: [PATCH] Add local proton setup --- flake.nix | 1 + nixos/email-accounts.nix | 24 ++++++++++++++++++++++++ nixos/gui/default.nix | 1 - 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 nixos/email-accounts.nix diff --git a/flake.nix b/flake.nix index 4dd8de08..ed69b5c2 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,7 @@ system = "x86_64-linux"; modules = [ (import ./nixos/boxes/foureighty) + (import ./nixos/email-accounts.nix) home-manager.nixosModules.home-manager { diff --git a/nixos/email-accounts.nix b/nixos/email-accounts.nix new file mode 100644 index 00000000..7415d4a3 --- /dev/null +++ b/nixos/email-accounts.nix @@ -0,0 +1,24 @@ +{ config, pkgs, ... }: +{ + home-manager.users.cyryl = {...}: { + accounts.email.accounts.cyplo = { + primary = true; + address = "cyplO@cyplo.dev"; + aliases = [ "cyplo@cyplo.net" ]; + realName = "Cyryl PÅ‚otnicki"; + userName = "cyplo"; + }; + + home.packages = with pkgs; [ + hydroxide + thunderbird + ]; + + systemd.user.services."hydroxide" = { + Unit.Description = "Bridge to ProtonMail"; + Install.WantedBy = [ "default.target" ]; + Service.ExecStart = "${pkgs.hydroxide}/bin/hydroxide serve"; + }; + + }; +} diff --git a/nixos/gui/default.nix b/nixos/gui/default.nix index 1c885db0..ce05186b 100644 --- a/nixos/gui/default.nix +++ b/nixos/gui/default.nix @@ -1,5 +1,4 @@ { config, pkgs, ... }: - { home-manager.users.cyryl = {...}: { gtk = {