From d9eac56b06a7af4150557508f9e9b404b5b65efd Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 21 Aug 2023 15:08:24 +0900 Subject: [PATCH] Testing home-manager stuff --- desktops/common.nix | 2 ++ home-manager/bash.nix | 7 +++--- home-manager/thunderbird.nix | 9 ++++++++ users/albert/home.nix | 41 ++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 home-manager/thunderbird.nix diff --git a/desktops/common.nix b/desktops/common.nix index b1628411..46e039f7 100644 --- a/desktops/common.nix +++ b/desktops/common.nix @@ -3,6 +3,7 @@ users.users.albert = { packages = with pkgs; [ firefox + thunderbird bitwarden steam lutris @@ -14,5 +15,6 @@ # Software configurations ../software/firefox.nix ../software/weechat.nix + ../software/thunderbird.nix ]; } \ No newline at end of file diff --git a/home-manager/bash.nix b/home-manager/bash.nix index b26fc3fc..b818e4bb 100644 --- a/home-manager/bash.nix +++ b/home-manager/bash.nix @@ -19,14 +19,14 @@ # "host" "ssh" "cwd" - "root" - ]; - modulesRight = [ "nix-shell" "perms" "git" "docker" "exit" + "root" + ]; + modulesRight = [ ]; }; @@ -90,7 +90,6 @@ nrs = "nixos-rebuild --upgrade switch"; nrt = "nixos-rebuild test"; nrb = "nixos-rebuild build"; - }; }; }; diff --git a/home-manager/thunderbird.nix b/home-manager/thunderbird.nix new file mode 100644 index 00000000..852ea90e --- /dev/null +++ b/home-manager/thunderbird.nix @@ -0,0 +1,9 @@ +{ ... }: { + programs.thunderbird = { + enable = true; + profiles.Default = { + isDefault = true; + name = "default"; + }; + }; +} \ No newline at end of file diff --git a/users/albert/home.nix b/users/albert/home.nix index 874515d1..4df08520 100644 --- a/users/albert/home.nix +++ b/users/albert/home.nix @@ -7,4 +7,45 @@ # Universal Configs: ../../home-manager ]; + + accounts = { + email = { + accounts."sysctl" = { + thunderbird.enable = true; + userName = "albert"; + primary = true; + address = "albert@sysctl.io"; + # password + # https://nix-community.github.io/home-manager/options.html#opt-accounts.email.accounts._name_.passwordCommand + # password_command = "cat /var/run/sysctl-email" + aliases = [ "postmaster@sysctl.io" ]; + realName = "Albert J. Copeland"; + signature = '' + Albert J. Copeland + albert@sysctl.io + PGP: 64F6C4EB46C4543A + ''; + gpg = { + encryptByDefault = true; + key = "64F6C4EB46C4543A"; + signByDefault = true; + }; + imap = { + host = "sysctl.io"; + tls = { + enable = true; + useStartTls = true; + }; + }; + smtp = { + host = "sysctl.io"; + tls = { + enable = true; + useStartTls = true; + }; + }; + } + }; + calendar = {}; + }; } \ No newline at end of file