Cleanup with LSP guidance
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.desktopManager.cosmic.enable = true;
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
@@ -26,11 +26,13 @@ in
|
|||||||
inherit settings;
|
inherit settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${settings.username} = { config, ... }: {
|
home-manager.users.${settings.username} =
|
||||||
imports = homeModules;
|
{ config, ... }:
|
||||||
home.stateVersion = "25.11";
|
{
|
||||||
home.sessionVariables = {
|
imports = homeModules;
|
||||||
SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock";
|
home.stateVersion = "25.11";
|
||||||
|
home.sessionVariables = {
|
||||||
|
SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, cosmicLib, ... }:
|
{ config, cosmicLib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
wayland.desktopManager.cosmic = {
|
wayland.desktopManager.cosmic = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file."Assets" = {
|
home.file."Assets" = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ settings, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
|
|||||||
@@ -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"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable unfree globally
|
# Enable unfree globally
|
||||||
|
|||||||
@@ -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 ];
|
||||||
@@ -38,22 +34,22 @@ in
|
|||||||
|
|
||||||
# Sunshine
|
# Sunshine
|
||||||
services.sunshine = {
|
services.sunshine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
capSysAdmin = true;
|
capSysAdmin = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
applications = {
|
applications = {
|
||||||
apps = [
|
apps = [
|
||||||
{
|
{
|
||||||
name = "Steam Big Picture";
|
name = "Steam Big Picture";
|
||||||
cmd = "${pkgs.steam}/bin/steam -gamepadui";
|
cmd = "${pkgs.steam}/bin/steam -gamepadui";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "Desktop";
|
name = "Desktop";
|
||||||
cmd = "${pkgs.coreutils}/bin/true";
|
cmd = "${pkgs.coreutils}/bin/true";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.avahi.publish.enable = true;
|
services.avahi.publish.enable = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
settings = import ../settings.nix;
|
settings = import ../settings.nix;
|
||||||
|
|||||||
Reference in New Issue
Block a user