This commit is contained in:
mjallen18
2026-03-27 18:25:58 -05:00
parent 8217b83798
commit 5fe8c897aa
9 changed files with 90 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ in
${namespace} = {
sops.enable = true;
programs.opencode = enabled;
# desktop.plasma = enabled;
# desktop.plasma = enabled;
};
sops.secrets = {

View File

@@ -31,6 +31,7 @@ in
desktop.plasma = enabled;
programs = {
thunderbird = enabled;
hyprland = {
enable = false;
primaryDisplay = "DP-1";

View File

@@ -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 @@
};
};
};
}
}

View File

@@ -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";
};

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, namespace, ... }:
{
config,
lib,
namespace,
...
}:
let
cfg = config.${namespace}.programs.thunderbird;
in
@@ -21,4 +26,4 @@ in
};
};
};
}
}

View File

@@ -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 ];
};
}
}

View File

@@ -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
}
'';
};
};

View File

@@ -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);

View File

@@ -0,0 +1,39 @@
{
lib,
stdenvNoCC,
fetchurl,
}:
let
imageUrl = "https://scontent.ffcm1-2.fna.fbcdn.net/v/t39.30808-6/387733576_7270226619673057_585200616645530081_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=1d70fc&_nc_ohc=KeQIDYtXccwQ7kNvwGkF57h&_nc_oc=AdqzTQBFHCfCUmy1iF-ATon_uMr6n0nMSXFyYTmSbT07kVw3D5nCvgfqp3UNhjkO0AM&_nc_zt=23&_nc_ht=scontent.ffcm1-2.fna&_nc_gid=6gw6tJoXB9eWOy5en5irxg&_nc_ss=7a32e&oh=00_Afwr4AsNifG3vViXZ_x-wNC98bznQ2vFnVrKl2sDPEl9oA&oe=69CCE530";
in
stdenvNoCC.mkDerivation {
pname = "profile-pic";
version = "1.0.0";
src = fetchurl {
url = imageUrl;
hash = "sha256-n7yayMkNow6IaKVk8mkUWEqa0STR8UKNJD2K1PtPfW8=";
};
sourceRoot = ".";
dontUnpack = true;
dontBuild = true;
dontFixup = true;
installPhase = ''
runHook preInstall
mkdir -p "$out"
cp $src $out/profile-pic
runHook postInstall
'';
meta = with lib; {
description = "Profile Pic for Matt";
homepage = "https://authentik.mjallen.dev";
platforms = platforms.linux;
maintainers = [ ];
};
}