unihj
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
accounts = {
|
||||
email.accounts = {
|
||||
@@ -7,8 +12,11 @@
|
||||
realName = "Matt Jallen";
|
||||
address = "matt.l.jallen@gmail.com";
|
||||
userName = "matt.l.jallen@gmail.com";
|
||||
passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${config.sops.secrets."gmail-smtp-password".path}";
|
||||
passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${
|
||||
config.sops.secrets."gmail-smtp-password".path
|
||||
}";
|
||||
flavor = "gmail.com";
|
||||
thunderbird.enable = true;
|
||||
smtp = {
|
||||
tls = {
|
||||
enable = false;
|
||||
@@ -22,7 +30,9 @@
|
||||
realName = "Matt Jallen";
|
||||
address = "jalle008@protonmail.com";
|
||||
userName = "jalle008@protonmail.com";
|
||||
passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${config.sops.secrets."protonmail-password".path}";
|
||||
passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${
|
||||
config.sops.secrets."protonmail-password".path
|
||||
}";
|
||||
smtp = {
|
||||
tls = {
|
||||
enable = false;
|
||||
@@ -34,4 +44,4 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,10 @@ in
|
||||
nix-prefetch-scripts
|
||||
nixfmt
|
||||
pciutils
|
||||
proton-pass
|
||||
proton-pass-cli
|
||||
proton-vpn-cli
|
||||
protonvpn-gui
|
||||
protonup-ng
|
||||
rsync
|
||||
smartmontools
|
||||
@@ -69,6 +73,10 @@ in
|
||||
)
|
||||
);
|
||||
|
||||
file = {
|
||||
".face".source = "${pkgs.${namespace}.profile-pic}/profile-pic";
|
||||
};
|
||||
|
||||
stateVersion = lib.mkDefault "23.11";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ config, lib, pkgs, namespace, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.${namespace}.programs.thunderbird;
|
||||
in
|
||||
@@ -21,4 +26,4 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
{ config, lib, pkgs, namespace, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.${namespace}.services.protonmail;
|
||||
in
|
||||
@@ -15,4 +21,4 @@ in
|
||||
|
||||
home.packages = with pkgs; [ protonmail-bridge-gui ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ let
|
||||
handle @hass {
|
||||
reverse_proxy http://nuc-nixos.local:8123
|
||||
}
|
||||
|
||||
|
||||
handle {
|
||||
respond "Forbidden" 403
|
||||
}
|
||||
@@ -60,18 +60,18 @@ let
|
||||
|
||||
"sonarr.mjallen.dev" = {
|
||||
extraConfig = ''
|
||||
@sonarr {
|
||||
remote_ip 10.0.1.0/24 10.1.1.0/16
|
||||
host sonarr.mjallen.dev
|
||||
}
|
||||
@sonarr {
|
||||
remote_ip 10.0.1.0/24 10.1.1.0/16
|
||||
host sonarr.mjallen.dev
|
||||
}
|
||||
|
||||
handle @sonarr {
|
||||
reverse_proxy 10.0.1.3:8989
|
||||
}
|
||||
handle @sonarr {
|
||||
reverse_proxy 10.0.1.3:8989
|
||||
}
|
||||
|
||||
handle {
|
||||
respond "Forbidden" 403
|
||||
}
|
||||
handle {
|
||||
respond "Forbidden" 403
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
@@ -137,6 +137,7 @@ in
|
||||
home = "/home/${cfg.name}";
|
||||
isNormalUser = true;
|
||||
shell = lib.mkForce pkgs.zsh;
|
||||
description = cfg.fullName;
|
||||
|
||||
# SSH keys - combine user-specific and common keys
|
||||
openssh.authorizedKeys.keys = cfg.sshKeys ++ (lib.optionals cfg.enableCommonSshKeys commonSshKeys);
|
||||
|
||||
Reference in New Issue
Block a user