diff --git a/hosts/d2nix/home-manager/home.nix b/hosts/d2nix/home-manager/home.nix index 09deaed..2fc9a9c 100644 --- a/hosts/d2nix/home-manager/home.nix +++ b/hosts/d2nix/home-manager/home.nix @@ -6,7 +6,8 @@ ./variables.nix ./i3status.nix ./dunst.nix - ./himalaya.nix +# ./himalaya.nix + ./mails.nix ../../../modules/tmux.nix ../../../modules/emacs.nix ../../../modules/neovim.nix diff --git a/hosts/d2nix/home-manager/mails.nix b/hosts/d2nix/home-manager/mails.nix new file mode 100644 index 0000000..3f1fdd0 --- /dev/null +++ b/hosts/d2nix/home-manager/mails.nix @@ -0,0 +1,47 @@ +{ pkgs, config, lib, ... }:{ + # accounts.email.maildirBasePath = "Mailsdir"; + accounts.email= { + accounts = { + dri = { + primary = true; + address = "alexandre@dri.fr"; + userName = "1847_alexandre"; + realName = "Alexandre LUCAZEAU"; + passwordCommand = "keepassxc-cli show -a Password --no-password -k $HOME/Nextcloud/PRIVE/keys/emails $HOME/Nextcloud/PRIVE/Keepass/emails.kdbx emails"; + flavor = "plain"; + folders = { + inbox = "INBOX"; + trash = "Junk"; + }; + imap = { + host = "imap.dri.fr"; + tls.enable = false; + }; + smtp = { + host = "smtp.dri.fr"; + port = 587; + tls.enable = false; + }; + + mbsync = { + enable = true; + create = "both"; + expunge = "both"; + }; + notmuch.enable = true; + }; + }; + }; + services.mbsync = { + enable = true; + }; + + programs = { + msmtp.enable = true; + mbsync.enable = true; + notmuch.enable = true; + }; + #xdg.configFile = { + # "msmtp/config".source= ./configs/msmtp_config; + #}; +} diff --git a/hosts/d2nix/home-manager/packages.nix b/hosts/d2nix/home-manager/packages.nix index a74bd44..cbb6480 100644 --- a/hosts/d2nix/home-manager/packages.nix +++ b/hosts/d2nix/home-manager/packages.nix @@ -44,6 +44,8 @@ cura freecad drawio + chromium + fido2luks ]; nixpkgs.config.permittedInsecurePackages = [ "ferdi-5.8.1" diff --git a/hosts/d2nix/nixos/configuration.nix b/hosts/d2nix/nixos/configuration.nix index d64a85f..0c30d46 100644 --- a/hosts/d2nix/nixos/configuration.nix +++ b/hosts/d2nix/nixos/configuration.nix @@ -13,6 +13,7 @@ ./network.nix modules/common.nix modules/smtp.nix + modules/redshift.nix # modules/starship.nix modules/syncthing.nix # modules/powermanagement.nix @@ -26,6 +27,9 @@ tmp.cleanOnBoot = true; kernelParams = [ "i915.enable_fbc=1" ]; }; + boot.initrd.luks.fido2Support = true; + boot.initrd.luks.devices."/dev/sda2".device = "/dev/sda2"; + boot.initrd.luks.devices."/dev/sda2".fido2.credential = "a67d17616bf2568727498dffa95205df943383ab3a2f9798606532d5791a155a37dd52dae2262619c1da2be7562ec9dd94888c71a9326fea70dfe16214b5ea8ec0143b010000"; hardware = { # Enable microcode updates for Intel CPU @@ -118,12 +122,6 @@ environment.variables.EDITOR = "nvim"; - location = { - provider = "manual"; - latitude = 47.77; - longitude = -1.164; - }; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; } diff --git a/modules/users.nix b/modules/users.nix index 8f569d5..623ff0e 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -28,6 +28,7 @@ programs.fish.shellAliases = { ll = "ls -l"; ls = "lsd"; + lssh = "ssh -o 'PubkeyAcceptedKeyTypes +ssh-rsa' -o 'HostKeyAlgorithms +ssh-dss' -i ~/.ssh/id_rsa" # vi = "nvim"; # vim = "nvim"; };