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