Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5023e6a0b9 | ||
|
|
ad2c3a46b7 | ||
|
|
8470bfe621 | ||
|
|
5f4e768666 | ||
|
|
3472cc5fb9 | ||
|
|
9a77d382df | ||
|
|
f61c516048 | ||
|
|
b0180f42b3 | ||
|
|
1d685b3600 | ||
|
|
32b0b38523 | ||
|
|
24c7043fa2 | ||
|
|
7e6f12dac9 | ||
|
|
e737b45307 | ||
|
|
db3b4c0441 |
@@ -95,13 +95,15 @@
|
|||||||
zoxide
|
zoxide
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.command-not-found.enable = true;
|
||||||
|
|
||||||
# basic configuration of git, please change to your own
|
# basic configuration of git, please change to your own
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
user = {
|
user = {
|
||||||
name = "Alexander Wainwright";
|
name = "Alexander Wainwright";
|
||||||
email = "code@figtree.dev";
|
email = "alexander.l.wainwright@boeing.com";
|
||||||
};
|
};
|
||||||
init = {
|
init = {
|
||||||
defaultBranch = "main";
|
defaultBranch = "main";
|
||||||
@@ -109,6 +111,7 @@
|
|||||||
push = {
|
push = {
|
||||||
autoSetupRemote = true;
|
autoSetupRemote = true;
|
||||||
};
|
};
|
||||||
|
pull.ff = "only";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -385,7 +385,6 @@ set -g mouse on
|
|||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
set -g allow-rename off
|
set -g allow-rename off
|
||||||
|
|
||||||
|
|
||||||
# force Vi mode
|
# force Vi mode
|
||||||
# really you should export VISUAL or EDITOR environment variable, see manual
|
# really you should export VISUAL or EDITOR environment variable, see manual
|
||||||
#set -g status-keys vi
|
#set -g status-keys vi
|
||||||
|
|||||||
@@ -18,7 +18,14 @@ config.window_frame = {
|
|||||||
config.font_size = 9.5
|
config.font_size = 9.5
|
||||||
config.hide_tab_bar_if_only_one_tab = true
|
config.hide_tab_bar_if_only_one_tab = true
|
||||||
|
|
||||||
config.font = wezterm.font 'Fira Code'
|
-- config.font = wezterm.font 'Fira Code'
|
||||||
config.font = wezterm.font 'Lilex Nerd Font'
|
-- config.font = wezterm.font 'Lilex Nerd Font'
|
||||||
|
|
||||||
|
config.font = wezterm.font_with_fallback {
|
||||||
|
'Fira Code', -- Replace with your preferred main font
|
||||||
|
'Noto Sans Symbols 2', -- Great for arrows like \u{1f898}
|
||||||
|
'Noto Sans',
|
||||||
|
'Symbols Nerd Font Mono',
|
||||||
|
}
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
4
displaylink-prefetch.sh
Executable file
4
displaylink-prefetch.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# nix-prefetch-url --name displaylink-610.zip https://www.synaptics.com/sites/default/files/exe_files/2024-10/DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu6.1-EXE.zip
|
||||||
|
nix-prefetch-url --name displaylink-620.zip https://www.synaptics.com/sites/default/files/exe_files/2025-09/DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu6.2-EXE.zip
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
@@ -13,15 +12,97 @@
|
|||||||
../modules/laptop.nix
|
../modules/laptop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
users.users.michael = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Michael Christian Latino";
|
||||||
|
extraGroups = [ ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
];
|
||||||
|
shell = pkgs.fish;
|
||||||
|
};
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Use latest kernel.
|
# Use latest kernel.
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
||||||
|
|
||||||
networking.hostName = "armitage";
|
networking.hostName = "armitage";
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
# Load nvidia driver for Xorg and Wayland
|
||||||
|
services.xserver.videoDrivers = ["nvidia" "displaylink" "modesetting"];
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
blacklistedKernelModules = [ "nouveau" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
|
||||||
|
# Modesetting is required.
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
|
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||||
|
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||||
|
# of just the bare essentials.
|
||||||
|
powerManagement.enable = false;
|
||||||
|
|
||||||
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
|
# independent third-party "nouveau" open source driver).
|
||||||
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
|
# supported GPUs is at:
|
||||||
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
|
# Only available from driver 515.43.04+
|
||||||
|
open = true;
|
||||||
|
|
||||||
|
# Enable the Nvidia settings menu,
|
||||||
|
# accessible via `nvidia-settings`.
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
|
version = "580.76.05";
|
||||||
|
sha256_64bit = "sha256-IZvmNrYJMbAhsujB4O/4hzY8cx+KlAyqh7zAVNBdl/0=";
|
||||||
|
sha256_aarch64 = "sha256-NL2DswzVWQQMVM092NmfImqKbTk9VRgLL8xf4QEvGAQ=";
|
||||||
|
openSha256 = "sha256-xEPJ9nskN1kISnSbfBigVaO6Mw03wyHebqQOQmUg/eQ=";
|
||||||
|
settingsSha256 = "sha256-ll7HD7dVPHKUyp5+zvLeNqAb6hCpxfwuSyi+SAXapoQ=";
|
||||||
|
persistencedSha256 = "sha256-bs3bUi8LgBu05uTzpn2ugcNYgR5rzWEPaTlgm0TIpHY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
sync.enable = true;
|
||||||
|
|
||||||
|
amdgpuBusId = "PCI:0:65:0";
|
||||||
|
nvidiaBusId = "PCI:0:64:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# packages
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
displaylink
|
||||||
|
libreoffice
|
||||||
|
];
|
||||||
|
|
||||||
|
# Already detected directories
|
||||||
|
programs = {
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# # display link drivers
|
||||||
|
# systemd.services.dlm.wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|||||||
@@ -16,12 +16,6 @@
|
|||||||
# break fish man completion and apropos.
|
# break fish man completion and apropos.
|
||||||
documentation.man.generateCaches = false;
|
documentation.man.generateCaches = false;
|
||||||
|
|
||||||
# enable a 1GB swap file
|
|
||||||
swapDevices = [{
|
|
||||||
device = "/swapfile";
|
|
||||||
size = 1024;
|
|
||||||
}];
|
|
||||||
|
|
||||||
# enable zram. not totally sure if this does it in physical ram or just swap
|
# enable zram. not totally sure if this does it in physical ram or just swap
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
@@ -75,7 +69,7 @@
|
|||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 60d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable zeroconf
|
# Enable zeroconf
|
||||||
@@ -127,12 +121,14 @@
|
|||||||
fd
|
fd
|
||||||
git
|
git
|
||||||
gocryptfs
|
gocryptfs
|
||||||
|
man-pages
|
||||||
mosh
|
mosh
|
||||||
neovim
|
neovim
|
||||||
python314
|
python314
|
||||||
ripgrep
|
ripgrep
|
||||||
rsync
|
rsync
|
||||||
silver-searcher
|
silver-searcher
|
||||||
|
sqlite
|
||||||
tldr
|
tldr
|
||||||
unzip
|
unzip
|
||||||
uv
|
uv
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
./certs/alt-caddy.crt
|
./certs/alt-caddy.crt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Enable the GNOME Desktop Environment.
|
||||||
services.displayManager.gdm = {
|
services.displayManager.gdm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wayland = true;
|
wayland = true;
|
||||||
@@ -37,10 +38,14 @@
|
|||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
khmeros
|
khmeros
|
||||||
|
libreoffice-fresh
|
||||||
|
nerd-fonts.lilex
|
||||||
|
noto-fonts
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-cjk-serif
|
noto-fonts-cjk-serif
|
||||||
nerd-fonts.lilex
|
noto-fonts-color-emoji
|
||||||
fira-code
|
fira-code
|
||||||
|
meld
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
|
|
||||||
services.power-profiles-daemon.enable = false;
|
services.power-profiles-daemon.enable = false;
|
||||||
|
services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore";
|
||||||
|
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user