Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,8 @@
|
|||||||
{ pkgs, ... }@all: with all; {
|
{ pkgs, ... }@all: with all; let
|
||||||
|
username = "lennart";
|
||||||
|
in {
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"nx2site/radicale/password" = { };
|
"nx2site/nextcloud/lennart_pass" = { };
|
||||||
};
|
};
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.writers.writePython3Bin "caldav_event" {
|
(pkgs.writers.writePython3Bin "caldav_event" {
|
||||||
@@ -90,10 +92,10 @@ def is_too_old(event_dict: dict) -> bool:
|
|||||||
return now - last_checked >= timedelta(minutes=10)
|
return now - last_checked >= timedelta(minutes=10)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
password_file = "${config.sops.secrets."nx2site/radicale/password".path}" # Path to password file
|
password_file = "${config.sops.secrets."nx2site/nextcloud/lennart_pass".path}" # Path to password file
|
||||||
cache_file = "/tmp/caldav_event_cache.json" # Path to cache file
|
cache_file = "/tmp/caldav_event_cache.json" # Path to cache file
|
||||||
url = "https://dav.${hyper.domain}/"
|
url = "https://n.${hyper.domain}/remote.php/dav/calendars/${username}/"
|
||||||
username = "nx2"
|
username = "${username}"
|
||||||
password = get_password(password_file)
|
password = get_password(password_file)
|
||||||
now = datetime.now(timezone.utc).timestamp()
|
now = datetime.now(timezone.utc).timestamp()
|
||||||
|
|
||||||
|
|||||||
@@ -187,14 +187,17 @@
|
|||||||
userName = "lennart@${hyper.domain}";
|
userName = "lennart@${hyper.domain}";
|
||||||
realName = "Lennart J. Kurzweg";
|
realName = "Lennart J. Kurzweg";
|
||||||
imap = {
|
imap = {
|
||||||
port = 143;
|
port = 993;
|
||||||
host = "mail.${hyper.domain}";
|
host = "ssh.${hyper.domain}";
|
||||||
tls.useStartTls = true;
|
tls.enable = true;
|
||||||
};
|
};
|
||||||
smtp = {
|
smtp = {
|
||||||
port = 587;
|
port = 465;
|
||||||
host = "mail.${hyper.domain}";
|
host = "mail-eu.smtp2go.com";
|
||||||
tls.useStartTls = true;
|
tls.enable = true;
|
||||||
|
# port = 587;
|
||||||
|
# host = "mail.${hyper.domain}";
|
||||||
|
# tls.useStartTls = true;
|
||||||
};
|
};
|
||||||
signature = {
|
signature = {
|
||||||
text = ''
|
text = ''
|
||||||
|
|||||||
@@ -36,6 +36,12 @@
|
|||||||
"nxace" = (nxace "nxace" );
|
"nxace" = (nxace "nxace" );
|
||||||
"nxacel" = (nxace "nxacel") // { hostname = "10.0.1.1"; };
|
"nxacel" = (nxace "nxacel") // { hostname = "10.0.1.1"; };
|
||||||
"nxrpli" = (nxace "nxrpil") // { hostname = "10.0.1.31"; port = 22; };
|
"nxrpli" = (nxace "nxrpil") // { hostname = "10.0.1.31"; port = 22; };
|
||||||
|
"nx2s-email-relay" = default // {
|
||||||
|
identityFile = "${hyper.home}/vault/ssh/nx2s-email-relay";
|
||||||
|
host = "35.243.218.208";
|
||||||
|
port = 22;
|
||||||
|
user = secrets.ssh.nx2s-email-relay-user;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.ssh-agent = {
|
services.ssh-agent = {
|
||||||
|
|||||||
@@ -88,8 +88,8 @@ in {
|
|||||||
{ on = ";"; run = "shell --interactive"; desc = "Run a shell command"; }
|
{ on = ";"; run = "shell --interactive"; desc = "Run a shell command"; }
|
||||||
{ on = ":"; run = "shell --block --interactive"; desc = "Run a shell command (block until finishes)"; }
|
{ on = ":"; run = "shell --block --interactive"; desc = "Run a shell command (block until finishes)"; }
|
||||||
{ on = "."; run = "hidden toggle"; desc = "Toggle the visibility of hidden files"; }
|
{ on = "."; run = "hidden toggle"; desc = "Toggle the visibility of hidden files"; }
|
||||||
{ on = "s"; run = "search fd"; desc = "Search files by name using fd"; }
|
{ on = "s"; run = "search --via=fd"; desc = "Search files by name using fd"; }
|
||||||
{ on = "S"; run = "search rg"; desc = "Search files by content using ripgrep"; }
|
{ on = "S"; run = "search --via=rg"; desc = "Search files by content using ripgrep"; }
|
||||||
{ on = "<C-s>"; run = "escape --search"; desc = "Cancel the ongoing search"; }
|
{ on = "<C-s>"; run = "escape --search"; desc = "Cancel the ongoing search"; }
|
||||||
{ on = "z"; run = "plugin zoxide"; desc = "Jump to a directory using zoxide"; }
|
{ on = "z"; run = "plugin zoxide"; desc = "Jump to a directory using zoxide"; }
|
||||||
{ on = "Z"; run = "plugin fzf"; desc = "Jump to a directory or reveal a file using fzf"; }
|
{ on = "Z"; run = "plugin fzf"; desc = "Jump to a directory or reveal a file using fzf"; }
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
# "https://cache.nixos-cuda.org"
|
"https://cache.nixos-cuda.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
# "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
|
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user