mirror of
https://github.com/nix-community/home-manager
synced 2024-11-06 03:09:45 +01:00
32 lines
669 B
Nix
32 lines
669 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.irssi = {
|
||
|
enable = true;
|
||
|
networks.oftc = {
|
||
|
nick = "nick";
|
||
|
server = {
|
||
|
address = "irc.oftc.net";
|
||
|
port = 6697;
|
||
|
autoConnect = true;
|
||
|
ssl.certificateFile =
|
||
|
"${config.home.homeDirectory}/.irssi/certs/nick.pem";
|
||
|
};
|
||
|
channels.home-manager.autoJoin = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileContent \
|
||
|
home-files/.irssi/config \
|
||
|
${./example-settings-expected.config}
|
||
|
'';
|
||
|
|
||
|
nixpkgs.overlays =
|
||
|
[ (self: super: { irsii = pkgs.writeScriptBin "dummy-irsii" ""; }) ];
|
||
|
};
|
||
|
}
|