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 = [
@@ -17,7 +17,10 @@
./modules/home.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "25.11";
}

View File

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

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
boot.loader.systemd-boot = {
@@ -12,7 +12,11 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [ "tcp_bbr" ];
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.tmpfsSize = "4G";

View File

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

View File

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

View File

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

View File

@@ -1,15 +1,17 @@
{ pkgs, ... }:
{ ... }:
{
home.shellAliases = {
# Nix Commands
"nix:rebuild" = "sudo nixos-rebuild switch --flake /etc/nixos";
"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:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
"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
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
let
settings = import ../settings.nix;
@@ -17,19 +17,27 @@ in
# Allowed ports
allowedTCPPorts = [
# SyncThing
8384 22000
8384
22000
];
allowedUDPPorts = [
# 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 = {
enable = true;
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

View File

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

View File

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