Much change, kinda broke my git history

This commit is contained in:
Julien Malka 2021-12-22 22:16:48 +01:00
parent 077322deaf
commit 4b0d80d349
13 changed files with 108 additions and 19 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, inputs, ... }:
let
cfg = config.luj.hmgr;
in
@ -13,7 +13,7 @@ with lib;
lib.mapAttrs
(name: value:
{
imports = with builtins; map (x: ../../home-manager-modules + "/${x}/default.nix") (attrNames (readDir ../../home-manager-modules));
imports = with builtins; (map (x: ../../home-manager-modules + "/${x}/default.nix") (attrNames (readDir ../../home-manager-modules)));
home.username = "${name}";
home.homeDirectory = "/home/${name}";
home.stateVersion = "21.11";

View file

@ -0,0 +1,23 @@
{ pkgs, config, lib, inputs, ... }:
let
cfg = config.luj.secrets;
in
with lib;
{
options.luj.secrets = {
enable = mkEnableOption "Create secrets";
};
config = mkIf cfg.enable
{
sops.secrets.ens-mail-passwd = {
owner = "julien";
path = "/home/julien/.config/ens-mail-passwd";
};
sops.secrets.sendinblue-mail-passwd = {};
};
}

View file

@ -0,0 +1,21 @@
{ pkgs, config, lib, inputs, ... }:
let
cfg = config.luj.ssh-server;
in
with lib;
{
options.luj.ssh-server = {
enable = mkEnableOption "Accept ssh connections";
};
config = mkIf cfg.enable
{
services.openssh = {
enable = true;
ports = [ 45 ];
passwordAuthentication = false;
permitRootLogin = "no";
openFirewall = true;
};
};
}

View file

@ -8,7 +8,7 @@ let
host = "smtp-relay.sendinblue.com";
port = "587";
user = "julien.malka@me.com";
passwordeval = "${pkgs.gnupg}/bin/gpg -q --batch --passphrase-file /home/julien/email-passphrase -d ${./sendinblue.pass.gpg}";
passwordeval = "cat /run/secrets/sendinblue-mail-passwd";
from = emailFrom;
};