Cleanup with LSP guidance

This commit is contained in:
2026-02-17 15:21:54 -07:00
parent 8ef20405ba
commit 432d5df195
17 changed files with 71 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
{ {
imports = [ imports = [
@@ -17,7 +17,10 @@
./modules/home.nix ./modules/home.nix
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "25.11"; system.stateVersion = "25.11";
} }

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
security.rtkit.enable = true; security.rtkit.enable = true;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
boot.loader.systemd-boot = { boot.loader.systemd-boot = {
@@ -12,7 +12,11 @@
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [ "tcp_bbr" ]; boot.kernelModules = [ "tcp_bbr" ];
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelParams = [ "preempt=full" "quiet" "udev.log_priority=3" ]; boot.kernelParams = [
"preempt=full"
"quiet"
"udev.log_priority=3"
];
boot.tmp.useTmpfs = true; boot.tmp.useTmpfs = true;
boot.tmp.tmpfsSize = "4G"; boot.tmp.tmpfsSize = "4G";

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
{ {
services.desktopManager.cosmic.enable = true; services.desktopManager.cosmic.enable = true;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
{ {
hardware.graphics = { hardware.graphics = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }: { inputs, ... }:
let let
settings = import ../settings.nix; settings = import ../settings.nix;
@@ -26,7 +26,9 @@ in
inherit settings; inherit settings;
}; };
home-manager.users.${settings.username} = { config, ... }: { home-manager.users.${settings.username} =
{ config, ... }:
{
imports = homeModules; imports = homeModules;
home.stateVersion = "25.11"; home.stateVersion = "25.11";
home.sessionVariables = { home.sessionVariables = {

View File

@@ -1,15 +1,17 @@
{ pkgs, ... }: { ... }:
{ {
home.shellAliases = { home.shellAliases = {
# Nix Commands # Nix Commands
"nix:rebuild" = "sudo nixos-rebuild switch --flake /etc/nixos"; "nix:rebuild" = "sudo nixos-rebuild switch --flake /etc/nixos";
"nix:update" = "cd /etc/nixos && nix flake update && sudo nixos-rebuild switch --flake ."; "nix:update" = "cd /etc/nixos && nix flake update && sudo nixos-rebuild switch --flake .";
"nix:purge" = "sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot"; "nix:purge" =
"sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
"nix:edit" = "$EDITOR /etc/nixos"; "nix:edit" = "$EDITOR /etc/nixos";
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push"; "nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
"nix:pull" = "cd /etc/nixos && git pull"; "nix:pull" = "cd /etc/nixos && git pull";
"nix:hw" = "sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix"; "nix:hw" =
"sudo nixos-generate-config --show-hardware-config > /etc/nixos/hardware-configuration.nix";
# Utilities # Utilities
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber"; "fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";

View File

@@ -1,4 +1,4 @@
{ config, lib, cosmicLib, ... }: { config, cosmicLib, ... }:
{ {
wayland.desktopManager.cosmic = { wayland.desktopManager.cosmic = {

View File

@@ -1,4 +1,4 @@
{ config, ... }: { ... }:
{ {
home.file."Assets" = { home.file."Assets" = {

View File

@@ -1,4 +1,4 @@
{ settings, ... }: { ... }:
{ {
programs.ssh = { programs.ssh = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
{ {
services.syncthing = { services.syncthing = {

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { ... }:
{ {
programs.zed-editor = { programs.zed-editor = {
@@ -44,7 +44,10 @@
languages = { languages = {
"Nix" = { "Nix" = {
language_servers = [ "nil" "nixd" ]; language_servers = [
"nil"
"nixd"
];
format_on_save = "on"; format_on_save = "on";
}; };
}; };

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
let let
settings = import ../settings.nix; settings = import ../settings.nix;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
let let
settings = import ../settings.nix; settings = import ../settings.nix;
@@ -17,19 +17,27 @@ in
# Allowed ports # Allowed ports
allowedTCPPorts = [ allowedTCPPorts = [
# SyncThing # SyncThing
8384 22000 8384
22000
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
# SyncThing # SyncThing
22000 21027 22000
21027
]; ];
}; };
networking.nameservers = [ "1.1.1.1" "9.9.9.9" ]; networking.nameservers = [
"1.1.1.1"
"9.9.9.9"
];
services.resolved = { services.resolved = {
enable = true; enable = true;
dnsovertls = "opportunistic"; dnsovertls = "opportunistic";
fallbackDns = [ "1.0.0.1" "149.112.112.112" ]; fallbackDns = [
"1.0.0.1"
"149.112.112.112"
];
}; };
} }

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
# Enable unfree globally # Enable unfree globally

View File

@@ -1,10 +1,6 @@
{ config, pkgs, ... }: { pkgs, ... }:
let
settings = import ../settings.nix;
in
{ {
# Hardened OpenSSH
services.openssh = { services.openssh = {
enable = true; enable = true;
ports = [ 22 ]; ports = [ 22 ];

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
let let
settings = import ../settings.nix; settings = import ../settings.nix;