From b86d9836ab3417b83f79badb7ecbf38b9def8840 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Wed, 3 Apr 2024 11:58:16 -0500 Subject: [PATCH] made (unused) irssi config, fixed a few typos. --- hosts/workstation-vm/configuration.nix | 2 +- hosts/workstation-vm/home.nix | 2 +- modules/home-manager/terminal/irssi.nix | 38 +++++++++++++++++++ .../home-manager/terminal/nushell/config.nu | 2 +- modules/home-manager/terminal/tiny-irc.nix | 7 ++-- 5 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 modules/home-manager/terminal/irssi.nix diff --git a/hosts/workstation-vm/configuration.nix b/hosts/workstation-vm/configuration.nix index b6c2f6f..9b4914f 100644 --- a/hosts/workstation-vm/configuration.nix +++ b/hosts/workstation-vm/configuration.nix @@ -15,7 +15,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "worskstation-vm"; # Define your hostname. + networking.hostName = "workstation-vm"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary diff --git a/hosts/workstation-vm/home.nix b/hosts/workstation-vm/home.nix index 68572ec..2ca1e64 100644 --- a/hosts/workstation-vm/home.nix +++ b/hosts/workstation-vm/home.nix @@ -27,7 +27,7 @@ ../../modules/home-manager/terminal ../../modules/home-manager/nvim ../../modules/home-manager - ../../modules/home-manager/kittty.nix + ../../modules/home-manager/kitty.nix inputs.nixvim.homeManagerModules.nixvim ]; } diff --git a/modules/home-manager/terminal/irssi.nix b/modules/home-manager/terminal/irssi.nix new file mode 100644 index 0000000..b5bbc17 --- /dev/null +++ b/modules/home-manager/terminal/irssi.nix @@ -0,0 +1,38 @@ +{ + config, + pkgs, + lib, + ... +}: { + programs.irssi = { + enable = true; + networks = { + liberachat = { + nick = "toric"; + server = { + address = "irc.libera.chat"; + port = 6697; + autoConnect = true; + ssl = { + enable = true; + certificateFile = "${config.home.homeDirectory}/keys/certs/irc.pem"; + verify = true; + }; + }; + channels = { + libera.autoJoin = true; + linux.autoJoin = true; + programming.autoJoin = true; + rust.autoJoin = true; + nixos.autoJoin = true; + git.autoJoin = true; + neovim.autoJoin = true; + kernel.autoJoin = true; + hardware.autoJoin = true; + lobsters.autoJoin = true; + gamingonlinux.autoJoin = true; + }; + }; + }; + }; +} diff --git a/modules/home-manager/terminal/nushell/config.nu b/modules/home-manager/terminal/nushell/config.nu index 708f4bd..ae6ad58 100644 --- a/modules/home-manager/terminal/nushell/config.nu +++ b/modules/home-manager/terminal/nushell/config.nu @@ -66,4 +66,4 @@ def git-authors [] { git-log --all | select name date | histogram name } -use completions * +# use completions * diff --git a/modules/home-manager/terminal/tiny-irc.nix b/modules/home-manager/terminal/tiny-irc.nix index 85c4695..a222a43 100644 --- a/modules/home-manager/terminal/tiny-irc.nix +++ b/modules/home-manager/terminal/tiny-irc.nix @@ -29,9 +29,10 @@ ]; sasl = { username = "toric"; - password = { - command = "pass show libera"; - }; + # password = { + # command = "pass show libera"; + # }; + pem = "${config.home.homeDirectory}/keys/certs/irc.pem"; }; } ];