Updated remote tmux config, removed old nvim blocks
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
firewall.allowedUDPPorts = [ 21 22 80 443 5900 8080 8384];
|
||||
};
|
||||
time.timeZone = "America/New_York";
|
||||
i18 = {
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
@@ -91,10 +91,10 @@
|
||||
|
||||
services = {
|
||||
pulseaudio.enable = false;
|
||||
rtkit.enable = true;
|
||||
printing.enable = false;
|
||||
openssh.enable = true;
|
||||
};
|
||||
security.rtkit.enable = true;
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys =
|
||||
[
|
||||
|
||||
@@ -198,9 +198,17 @@
|
||||
set-option -as terminal-features 'foot:RGB'
|
||||
}
|
||||
if-shell "[[ $(hostname) = 'Titan' ]]" {
|
||||
set-option -as terminal-features 'xterm-256color:RGB'
|
||||
# set-option -as terminal-features 'xterm-256color:RGB'
|
||||
# set -g default-terminal "tmux-256color"
|
||||
# set -g terminal-overrides ",xterm-256color:RGB"
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -g terminal-overrides ",xterm-256color:RGB"
|
||||
|
||||
# Enable 24-bit color for ANY parent terminal tmux detects
|
||||
# (covers foot, kitty, wezterm, alacritty, xterm-256color, etc.)
|
||||
set-option -as terminal-features '*:RGB'
|
||||
|
||||
# If you previously set terminal-overrides/Tc, drop them to avoid conflicts
|
||||
# set -gu terminal-overrides # uncomment if you had overrides before
|
||||
}
|
||||
set-option -g update-environment "DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE"
|
||||
set -g focus-events on
|
||||
|
||||
79
modules/server-partitioning.nix
Normal file
79
modules/server-partitioning.nix
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
priority = 1;
|
||||
name = "ESP";
|
||||
start = "1M";
|
||||
end = "1024M";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" ]; # Override existing partition
|
||||
# Subvolumes must set a mountpoint in order to be mounted,
|
||||
# unless their parent is mounted
|
||||
subvolumes = {
|
||||
# Subvolume name is different from mountpoint
|
||||
"/rootfs" = {
|
||||
mountpoint = "/";
|
||||
};
|
||||
# Subvolume name is the same as the mountpoint
|
||||
"/home" = {
|
||||
mountOptions = [ "compress=zstd" ];
|
||||
mountpoint = "/home";
|
||||
};
|
||||
# Sub(sub)volume doesn't need a mountpoint as its parent is mounted
|
||||
"/home/user" = { };
|
||||
# Parent is not mounted so the mountpoint must be set
|
||||
"/nix" = {
|
||||
mountOptions = [
|
||||
"compress=zstd"
|
||||
"noatime"
|
||||
];
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
# This subvolume will be created but not mounted
|
||||
"/test" = { };
|
||||
# Subvolume for the swapfile
|
||||
"/swap" = {
|
||||
mountpoint = "/.swapvol";
|
||||
swap = {
|
||||
swapfile.size = "20M";
|
||||
swapfile2.size = "20M";
|
||||
swapfile2.path = "rel-path";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mountpoint = "/partition-root";
|
||||
swap = {
|
||||
swapfile = {
|
||||
size = "20M";
|
||||
};
|
||||
swapfile1 = {
|
||||
size = "20M";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user