feat: first helix conf
This commit is contained in:
parent
aefc04445b
commit
efd564b11c
4 changed files with 64 additions and 44 deletions
|
|
@ -4,21 +4,22 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.zen-browser.homeModules.twilight
|
||||
../../modules/home-manager/hyprland.nix
|
||||
../../modules/home-manager/pass.nix
|
||||
../../modules/home-manager/alacritty.nix
|
||||
../../modules/home-manager/blueman.nix
|
||||
../../modules/home-manager/btop.nix
|
||||
../../modules/home-manager/dunst.nix
|
||||
../../modules/home-manager/blueman.nix
|
||||
../../modules/home-manager/git.nix
|
||||
../../modules/home-manager/wofi.nix
|
||||
../../modules/home-manager/rofi.nix
|
||||
../../modules/home-manager/waybar.nix
|
||||
../../modules/home-manager/alacritty.nix
|
||||
../../modules/home-manager/nextcloud.nix
|
||||
../../modules/home-manager/zsh.nix
|
||||
../../modules/home-manager/tmux.nix
|
||||
../../modules/home-manager/fastfetch.nix
|
||||
../../modules/home-manager/git.nix
|
||||
../../modules/home-manager/helix.nix
|
||||
../../modules/home-manager/hyprland.nix
|
||||
../../modules/home-manager/nextcloud.nix
|
||||
../../modules/home-manager/pass.nix
|
||||
../../modules/home-manager/rofi.nix
|
||||
../../modules/home-manager/tmux.nix
|
||||
../../modules/home-manager/waybar.nix
|
||||
../../modules/home-manager/wofi.nix
|
||||
../../modules/home-manager/zsh.nix
|
||||
inputs.zen-browser.homeModules.twilight
|
||||
];
|
||||
home.username = "sprechtl";
|
||||
home.homeDirectory = "/home/sprechtl";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
fqdn = "matrix.sprechtl.me";
|
||||
baseUrl = "https://${fqdn}";
|
||||
clientConfig."m.homeserver".base_url = baseUrl;
|
||||
|
|
@ -40,12 +44,12 @@ in {
|
|||
# Coturn Ports
|
||||
networking.firewall = {
|
||||
interfaces.enp0s31f6 = let
|
||||
range = with config.services.coturn; lib.singleton {
|
||||
range = with config.services.coturn;
|
||||
lib.singleton {
|
||||
from = min-port;
|
||||
to = max-port;
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
allowedUDPPortRanges = range;
|
||||
allowedUDPPorts = [3478 5349];
|
||||
allowedTCPPortRanges = [];
|
||||
|
|
@ -174,15 +178,18 @@ in {
|
|||
settings.enable_registration = false;
|
||||
enableRegistrationScript = true;
|
||||
settings.listeners = [
|
||||
{ port = 8008;
|
||||
{
|
||||
port = 8008;
|
||||
bind_addresses = ["::1"];
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
resources = [ {
|
||||
resources = [
|
||||
{
|
||||
names = ["client" "federation"];
|
||||
compress = true;
|
||||
} ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
12
modules/home-manager/helix.nix
Normal file
12
modules/home-manager/helix.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{...}: {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "gruvbox";
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
lsp.display-messages = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue