mail: remove ugent email
This commit is contained in:
parent
0dba728802
commit
0bb39c4f15
3 changed files with 2 additions and 80 deletions
50
flake.lock
generated
50
flake.lock
generated
|
@ -402,30 +402,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mfauth": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": [
|
|
||||||
"flake-utils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-overlay": "rust-overlay_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1656592749,
|
|
||||||
"narHash": "sha256-7Rzjvegv6wb6LLWrNUvFkDmbYIhiBNH6zTcNgtOEWqk=",
|
|
||||||
"owner": "rien",
|
|
||||||
"repo": "mfauth",
|
|
||||||
"rev": "b88b9f431449495737f0cb43860fdc78756156ed",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rien",
|
|
||||||
"repo": "mfauth",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix-index-database": {
|
"nix-index-database": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -589,7 +565,6 @@
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"mfauth": "mfauth",
|
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nixos-mailserver": "nixos-mailserver",
|
"nixos-mailserver": "nixos-mailserver",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
@ -623,31 +598,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay_2": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": [
|
|
||||||
"mfauth",
|
|
||||||
"flake-utils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"mfauth",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1656567145,
|
|
||||||
"narHash": "sha256-2xlv+g7kIb3f+1QdHlqpHPFfFw4myXUCC+cWk+6C4aE=",
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"rev": "3e95d6696b51f88b3ebfc7a21aefaeeb70a245bd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "oxalica",
|
|
||||||
"repo": "rust-overlay",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -55,13 +55,6 @@
|
||||||
url = "github:nix-community/lanzaboote/v0.3.0";
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
mfauth = {
|
|
||||||
url = "github:rien/mfauth";
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.follows = "nixpkgs";
|
|
||||||
flake-utils.follows = "flake-utils";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nixos-mailserver = {
|
nixos-mailserver = {
|
||||||
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -90,7 +83,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, accentor, accentor-api, accentor-web, agenix, devshell, emacs-overlay, flake-utils, home-manager, lanzaboote, mfauth, nix-index-database, nixos-mailserver, nur, tetris, www-chvp-be }:
|
outputs = inputs@{ self, nixpkgs, accentor, accentor-api, accentor-web, agenix, devshell, emacs-overlay, flake-utils, home-manager, lanzaboote, nix-index-database, nixos-mailserver, nur, tetris, www-chvp-be }:
|
||||||
let
|
let
|
||||||
patches = builtins.map (patch: ./patches + "/${patch}") (builtins.filter (x: x != ".keep") (builtins.attrNames (builtins.readDir ./patches)));
|
patches = builtins.map (patch: ./patches + "/${patch}") (builtins.filter (x: x != ".keep") (builtins.attrNames (builtins.readDir ./patches)));
|
||||||
# Avoid IFD if there are no patches
|
# Avoid IFD if there are no patches
|
||||||
|
@ -111,7 +104,6 @@
|
||||||
devshell.overlays.default
|
devshell.overlays.default
|
||||||
emacs-overlay.overlay
|
emacs-overlay.overlay
|
||||||
(self: super: {
|
(self: super: {
|
||||||
mfauth = mfauth.packages.${self.system}.mfauth;
|
|
||||||
tetris = tetris.packages.${self.system}.default;
|
tetris = tetris.packages.${self.system}.default;
|
||||||
})
|
})
|
||||||
nur.overlay
|
nur.overlay
|
||||||
|
|
|
@ -157,7 +157,7 @@ in
|
||||||
(setq mu4e-contexts (list ${lib.concatStringsSep "\n" (map mkAccountConfig (lib.attrValues hmConfig.accounts.email.accounts))}))
|
(setq mu4e-contexts (list ${lib.concatStringsSep "\n" (map mkAccountConfig (lib.attrValues hmConfig.accounts.email.accounts))}))
|
||||||
(add-to-list
|
(add-to-list
|
||||||
'mu4e-bookmarks
|
'mu4e-bookmarks
|
||||||
'(:name "Combined inbox" :query "maildir:/personal/INBOX or maildir:/work/INBOX or maildir:/posteo/INBOX or maildir:/rodekruis-eerstehulp/INBOX" :key ?i :favorite t)
|
'(:name "Combined inbox" :query "maildir:/personal/INBOX or maildir:/posteo/INBOX or maildir:/rodekruis-eerstehulp/INBOX" :key ?i :favorite t)
|
||||||
)
|
)
|
||||||
(defun chvp--mu4e-dodona-cc-reply-to ()
|
(defun chvp--mu4e-dodona-cc-reply-to ()
|
||||||
"Add dodona@ugent.be in cc and reply-to headers."
|
"Add dodona@ugent.be in cc and reply-to headers."
|
||||||
|
@ -215,16 +215,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home-manager.users.charlotte = { ... }: {
|
home-manager.users.charlotte = { ... }: {
|
||||||
home.packages = [ pkgs.mfauth ];
|
|
||||||
xdg.configFile."mfauth/config.toml".text = ''
|
|
||||||
# Public thunderbird secrets
|
|
||||||
[accounts.work]
|
|
||||||
client_id = "08162f7c-0fd2-4200-a84a-f25a4db0b584"
|
|
||||||
client_secret = "TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82"
|
|
||||||
authorize_url = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"
|
|
||||||
token_url = "https://login.microsoftonline.com/common/oauth2/v2.0/token"
|
|
||||||
scope = "https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access"
|
|
||||||
'';
|
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
maildirBasePath = "/home/charlotte/mail";
|
maildirBasePath = "/home/charlotte/mail";
|
||||||
accounts = {
|
accounts = {
|
||||||
|
@ -238,16 +228,6 @@ in
|
||||||
primary = true;
|
primary = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
work = makeAccount {
|
|
||||||
name = "work";
|
|
||||||
address = "charlotte.vanpetegem@ugent.be";
|
|
||||||
host = "outlook.office365.com";
|
|
||||||
smtpHost = "smtp.office365.com";
|
|
||||||
secretToolId = "work-mail";
|
|
||||||
useStartTls = true;
|
|
||||||
oauth = true;
|
|
||||||
extraConfig.folders = { drafts = "Drafts"; inbox = "INBOX"; sent = "INBOX"; trash = "Deleted Items"; };
|
|
||||||
};
|
|
||||||
posteo = makeAccount {
|
posteo = makeAccount {
|
||||||
name = "posteo";
|
name = "posteo";
|
||||||
address = "chvp@posteo.net";
|
address = "chvp@posteo.net";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue