Compare commits
No commits in common. "37da206f8b512edaf00ad4a4974b8552bb9ac6b6" and "fce9a9667d418020a5cdd8acb355eefac5d28d87" have entirely different histories.
37da206f8b
...
fce9a9667d
|
|
@ -41,12 +41,12 @@ D('sealight.xyz', REG_NONE, DnsProvider(DNS_HEDNS),
|
||||||
A('ci', '69.61.2.203', TTL(300)),
|
A('ci', '69.61.2.203', TTL(300)),
|
||||||
A('write', '69.61.2.203', TTL(300)),
|
A('write', '69.61.2.203', TTL(300)),
|
||||||
A('photos', '69.61.2.203', TTL(300)),
|
A('photos', '69.61.2.203', TTL(300)),
|
||||||
// vultr melbourne: lituus
|
// vultr: lituus
|
||||||
A('@', '67.219.99.225', TTL(300)),
|
A('@', '45.77.48.108', TTL(300)),
|
||||||
A('jitsi', '67.219.99.225', TTL(300)),
|
A('jitsi', '45.77.48.108', TTL(300)),
|
||||||
A('chat', '67.219.99.225', TTL(300)),
|
A('chat', '45.77.48.108', TTL(300)),
|
||||||
A('element', '67.219.99.225', TTL(300)),
|
A('element', '45.77.48.108', TTL(300)),
|
||||||
A('turn', '67.219.99.225', TTL(300)),
|
A('turn', '45.77.48.108', TTL(300)),
|
||||||
//nullhex free email real estate
|
//nullhex free email real estate
|
||||||
CNAME('key1._domainkey', 'key1.nullhex.com.'),
|
CNAME('key1._domainkey', 'key1.nullhex.com.'),
|
||||||
CNAME('autoconfig', 'autoconfig.nullhex.com.'),
|
CNAME('autoconfig', 'autoconfig.nullhex.com.'),
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@
|
||||||
pkgs = deckPkgsFor.${system};
|
pkgs = deckPkgsFor.${system};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/deck
|
./hosts/deck
|
||||||
# jovian.nixosModules.default
|
jovian.nixosModules.default
|
||||||
self.nixosModules.wireguard
|
self.nixosModules.wireguard
|
||||||
agenix.nixosModules.age
|
agenix.nixosModules.age
|
||||||
self.nixosModules.backup
|
self.nixosModules.backup
|
||||||
|
|
@ -392,9 +392,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lituus = {
|
lituus = {
|
||||||
hostname = "67.219.99.225";
|
hostname = "sealight.xyz";
|
||||||
autoRollback = false;
|
autoRollback = false;
|
||||||
remoteBuild = true;
|
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
git-machete
|
git-machete
|
||||||
bottom
|
bottom
|
||||||
gptfdisk
|
gptfdisk
|
||||||
difftastic
|
|
||||||
starship
|
starship
|
||||||
jq
|
jq
|
||||||
manix
|
manix
|
||||||
|
|
@ -56,8 +55,6 @@
|
||||||
gnupg
|
gnupg
|
||||||
syncthing
|
syncthing
|
||||||
dijo
|
dijo
|
||||||
nixfmt-rfc-style
|
|
||||||
nix-tree
|
|
||||||
#ssb-patchwork
|
#ssb-patchwork
|
||||||
fontconfig
|
fontconfig
|
||||||
pandoc
|
pandoc
|
||||||
|
|
@ -162,7 +159,6 @@
|
||||||
initContent = ''
|
initContent = ''
|
||||||
bindkey -v
|
bindkey -v
|
||||||
autopair-init
|
autopair-init
|
||||||
export PATH="$PATH:/Users/anishlakhwara/go/bin"
|
|
||||||
'';
|
'';
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
#xdg.configFile = {
|
#xdg.configFile = {
|
||||||
# "git/config".source = ./config;
|
# "git/config".source = ./config;
|
||||||
|
|
@ -8,10 +7,6 @@
|
||||||
|
|
||||||
programs.lazygit.enable = true;
|
programs.lazygit.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
unstable.git-spice
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Anish Lakhwara";
|
userName = "Anish Lakhwara";
|
||||||
|
|
|
||||||
|
|
@ -1023,7 +1023,7 @@ in
|
||||||
vim.keymap.set({'n', 't'}, '<M-l>', '<CMD>NavigatorRight<CR>')
|
vim.keymap.set({'n', 't'}, '<M-l>', '<CMD>NavigatorRight<CR>')
|
||||||
|
|
||||||
-- Disable Ctrl+V in nvim so Kitty can handle paste
|
-- Disable Ctrl+V in nvim so Kitty can handle paste
|
||||||
vim.keymap.set('i', '<C-v>', '<C-r>+', {noremap = true, silent = true})
|
vim.keymap.set({'v', 'i'}, '<C-v>', '<Nop>', {noremap = true, silent = true})
|
||||||
|
|
||||||
-- Pane resizing with Alt+Shift+hjkl (to match tmux)
|
-- Pane resizing with Alt+Shift+hjkl (to match tmux)
|
||||||
vim.keymap.set('n', '<M-S-h>', '<Cmd>vertical resize -2<CR>', {silent = true})
|
vim.keymap.set('n', '<M-S-h>', '<Cmd>vertical resize -2<CR>', {silent = true})
|
||||||
|
|
|
||||||
|
|
@ -2,37 +2,10 @@ set -g base-index 1
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
# https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
|
# https://old.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
|
||||||
# colors
|
set -g default-terminal "xterm-256color"
|
||||||
set -g default-terminal "tmux-256color"
|
|
||||||
set -ga terminal-overrides ",*256col*:Tc"
|
set -ga terminal-overrides ",*256col*:Tc"
|
||||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||||
set-environment -g COLORTERM "truecolor"
|
set-environment -g COLORTERM "truecolor"
|
||||||
set -sa terminal-features ",tmux-256color:RGB:Nobr"
|
|
||||||
set -g allow-passthrough on
|
|
||||||
|
|
||||||
set -g set-clipboard on
|
|
||||||
|
|
||||||
# shift enter for amp
|
|
||||||
set -s extended-keys on
|
|
||||||
set -as terminal-features 'tmux*:extkeys'
|
|
||||||
|
|
||||||
# pane colors for amp diff view
|
|
||||||
# set-option -g pane-colours[0] "#4D5566"
|
|
||||||
# set-option -g pane-colours[1] "#F27983"
|
|
||||||
# set-option -g pane-colours[2] "#A6CC70"
|
|
||||||
# set-option -g pane-colours[3] "#F29E74"
|
|
||||||
# set-option -g pane-colours[4] "#77A8D9"
|
|
||||||
# set-option -g pane-colours[5] "#A37ACC"
|
|
||||||
# set-option -g pane-colours[6] "#4CBF99"
|
|
||||||
# set-option -g pane-colours[7] "#F0F0F0"
|
|
||||||
# set-option -g pane-colours[8] "#000000"
|
|
||||||
# set-option -g pane-colours[9] "#FF3333"
|
|
||||||
# set-option -g pane-colours[10] "#BAE67E"
|
|
||||||
# set-option -g pane-colours[11] "#FFA759"
|
|
||||||
# set-option -g pane-colours[12] "#73D0FF"
|
|
||||||
# set-option -g pane-colours[13] "#D4BFFF"
|
|
||||||
# set-option -g pane-colours[14] "#95E6CB"
|
|
||||||
# set-option -g pane-colours[15] "#ffffff"
|
|
||||||
|
|
||||||
# Mouse works as expected
|
# Mouse works as expected
|
||||||
set-option -g mouse on
|
set-option -g mouse on
|
||||||
|
|
@ -43,10 +16,6 @@ set -g focus-events on
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
# amp commands
|
|
||||||
set -g @amp/fork-thread-command 'new-window -n forked-thread $SHELL -c "amp threads fork; amp threads continue"'
|
|
||||||
bind -N 'Fork Amp thread' f "#{@amp/fork-thread-command}"
|
|
||||||
|
|
||||||
# don't rename windows automatically
|
# don't rename windows automatically
|
||||||
set-option -g allow-rename off
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
|
@ -94,7 +63,6 @@ set -g message-style 'fg=yellow bg=green bold'
|
||||||
|
|
||||||
# Unbind Ctrl+V so it passes through to Kitty for paste
|
# Unbind Ctrl+V so it passes through to Kitty for paste
|
||||||
unbind C-v
|
unbind C-v
|
||||||
set -g set-clipboard on
|
|
||||||
|
|
||||||
# Vim-aware pane navigation with Alt+hjkl
|
# Vim-aware pane navigation with Alt+hjkl
|
||||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||||
|
|
|
||||||
|
|
@ -73,9 +73,8 @@
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# Enable automatic login for the user.
|
# Enable automatic login for the user.
|
||||||
# Disabled: jovian.steam.autoStart handles this
|
services.xserver.displayManager.autoLogin.enable = true;
|
||||||
# services.xserver.displayManager.autoLogin.enable = true;
|
services.xserver.displayManager.autoLogin.user = "anish";
|
||||||
# services.xserver.displayManager.autoLogin.user = "anish";
|
|
||||||
|
|
||||||
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||||
systemd.services."getty@tty1".enable = false;
|
systemd.services."getty@tty1".enable = false;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ self, pkgs, config, lib, ... }:
|
{ self, pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
@ -31,16 +31,13 @@
|
||||||
# theme = "motion";
|
# theme = "motion";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# jovian.steam.enable = true;
|
jovian.steam.enable = true;
|
||||||
# jovian.devices.steamdeck.enable = true;
|
jovian.devices.steamdeck.enable = true;
|
||||||
# jovian.steam.user = "anish";
|
jovian.steam.user = "anish";
|
||||||
# jovian.steam.autoStart = true;
|
jovian.steam.autoStart = true;
|
||||||
# jovian.steam.desktopSession = "gnome";
|
jovian.steam.desktopSession = "gnome";
|
||||||
# jovian.steam.desktopSession = "none+bspwm";
|
# jovian.steam.desktopSession = "none+bspwm";
|
||||||
|
|
||||||
# Disable lightdm from desktop profile
|
|
||||||
services.xserver.displayManager.lightdm.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
# Install XR drivers
|
# Install XR drivers
|
||||||
# environment.systemPackages = with pkgs; [
|
# environment.systemPackages = with pkgs; [
|
||||||
# xrlinuxdriver
|
# xrlinuxdriver
|
||||||
|
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Block storage mount
|
|
||||||
fileSystems."/srv/sealight" = {
|
|
||||||
device = "/dev/disk/by-id/virtio-mel-3b1f60a89cd649";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "noatime" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Bind mounts for service data
|
|
||||||
# PostgreSQL moved to NVMe for performance - data lives directly on /var/lib/postgresql
|
|
||||||
# fileSystems."/var/lib/postgresql" = {
|
|
||||||
# device = "/srv/sealight/postgresql";
|
|
||||||
# fsType = "none";
|
|
||||||
# options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
fileSystems."/var/lib/matrix-synapse" = {
|
|
||||||
device = "/srv/sealight/matrix-synapse";
|
|
||||||
fsType = "none";
|
|
||||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/lib/matrix-as-discord" = {
|
|
||||||
device = "/srv/sealight/matrix-as-discord";
|
|
||||||
fsType = "none";
|
|
||||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/lib/mautrix-telegram" = {
|
|
||||||
device = "/srv/sealight/mautrix-telegram";
|
|
||||||
fsType = "none";
|
|
||||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/lib/wireguard" = {
|
|
||||||
device = "/srv/sealight/wireguard";
|
|
||||||
fsType = "none";
|
|
||||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/www" = {
|
|
||||||
device = "/srv/sealight/www";
|
|
||||||
fsType = "none";
|
|
||||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Ensure services wait for mounts
|
|
||||||
# PostgreSQL no longer needs to wait for /srv/sealight mount
|
|
||||||
# systemd.services.postgresql.unitConfig.RequiresMountsFor = [ "/srv/sealight" ];
|
|
||||||
systemd.services.matrix-synapse.unitConfig.RequiresMountsFor = [ "/srv/sealight" ];
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
{ self, profiles, suites, ... }:
|
{ self, profiles, suites, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./block-storage.nix
|
|
||||||
../profiles/core
|
../profiles/core
|
||||||
../profiles/server
|
../profiles/server
|
||||||
../profiles/metrics
|
../profiles/metrics
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,27 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports =
|
||||||
|
[
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
|
boot.initrd.availableKernelModules = [ "ata_piix" "floppy" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-uuid/f9e9468f-ff3b-430d-9ecf-ba275cf2f716";
|
{
|
||||||
fsType = "ext4";
|
device = "/dev/disk/by-uuid/3b8b2c4b-835e-4822-8ac8-0effdc8270d6";
|
||||||
|
fsType = "btrfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
virtualisation.hypervGuest.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,11 @@
|
||||||
age.secrets.synapse-config.file = "${self}/secrets/synapse-config.age";
|
age.secrets.synapse-config.file = "${self}/secrets/synapse-config.age";
|
||||||
age.secrets.synapse-config.owner = "matrix-synapse";
|
age.secrets.synapse-config.owner = "matrix-synapse";
|
||||||
|
|
||||||
systemd.services.matrix-synapse.serviceConfig.TimeoutStartSec = "10min";
|
|
||||||
|
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
max_upload_size = "100M";
|
max_upload_size = "100M";
|
||||||
server_name = "sealight.xyz";
|
server_name = "sealight.xyz";
|
||||||
federation_sender_instances = [];
|
|
||||||
listeners = [
|
listeners = [
|
||||||
{
|
{
|
||||||
port = 8448;
|
port = 8448;
|
||||||
|
|
@ -213,12 +210,7 @@
|
||||||
root = "/var/www/sealight.xyz";
|
root = "/var/www/sealight.xyz";
|
||||||
};
|
};
|
||||||
locations."/_matrix" = {
|
locations."/_matrix" = {
|
||||||
proxyPass = "http://127.0.0.1:8448";
|
proxyPass = "http://localhost:8448";
|
||||||
extraConfig = ''
|
|
||||||
proxy_read_timeout 300s;
|
|
||||||
proxy_connect_timeout 300s;
|
|
||||||
proxy_send_timeout 300s;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
# locations."/slackbridge" = {
|
# locations."/slackbridge" = {
|
||||||
# proxyPass = "http://localhost:9899";
|
# proxyPass = "http://localhost:9899";
|
||||||
|
|
@ -230,11 +222,6 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8448";
|
proxyPass = "http://localhost:8448";
|
||||||
extraConfig = ''
|
|
||||||
proxy_read_timeout 300s;
|
|
||||||
proxy_connect_timeout 300s;
|
|
||||||
proxy_send_timeout 300s;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
## virtual host for Riot/Web
|
## virtual host for Riot/Web
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue