Update Zed configuration for nix LSP and formatter.

This commit is contained in:
2025-11-23 16:34:22 +01:00
parent 2be712393f
commit 900b565405
114 changed files with 2311 additions and 2408 deletions

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
programs.auto-cpufreq = {
enable = true;
settings = {

View File

@@ -3,13 +3,11 @@
config,
lib,
...
}:
{
}: {
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelModules = [ "v4l2loopback" ];
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
kernelModules = ["v4l2loopback"];
extraModulePackages = [config.boot.kernelPackages.v4l2loopback];
kernel.sysctl = {
"vm.max_map_count" = 2147483642;
};

View File

@@ -1,8 +1,4 @@
{
inputs,
...
}:
{
{inputs, ...}: {
imports = [
./packages
./auto-cpufreq.nix

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
fonts = {
packages = with pkgs; [
dejavu_fonts

View File

@@ -2,8 +2,7 @@
pkgs,
username,
...
}:
{
}: {
services.greetd = {
enable = true;
#vt = 3;

View File

@@ -1,10 +1,9 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
hardware = {
sane = {
enable = true;
extraBackends = [ pkgs.sane-airscan ];
disabledDefaultBackends = [ "escl" ];
extraBackends = [pkgs.sane-airscan];
disabledDefaultBackends = ["escl"];
};
logitech.wireless = {
enable = false;

View File

@@ -2,11 +2,9 @@
host,
options,
...
}:
let
}: let
inherit (import ../../hosts/${host}/variables.nix) hostId;
in
{
in {
# Defensive assertion for hostname validity (clearer message at eval time)
assertions = [
{
@@ -19,7 +17,7 @@ in
hostName = "${host}";
hostId = hostId;
networkmanager.enable = true;
timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
timeServers = options.networking.timeServers.default ++ ["pool.ntp.org"];
firewall = {
enable = true;
allowedTCPPorts = [

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) enableNFS;
in
{
in {
services = {
rpcbind.enable = enableNFS;
nfs.server.enable = enableNFS;

View File

@@ -1,8 +1,4 @@
{
username,
...
}:
{
{username, ...}: {
programs.nh = {
enable = true;
clean = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# Communication
slack

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
nixpkgs.config.allowUnfree = true;
imports = [
./programs.nix

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# Learning & practice
exercism

View File

@@ -3,8 +3,7 @@
# inputs,
# system,
...
}:
{
}: {
environment.systemPackages = with pkgs; [
# inputs.prismlauncher-cracked.packages.${system}.default
space-cadet-pinball

View File

@@ -3,8 +3,7 @@
# inputs,
# system,
...
}:
{
}: {
environment.systemPackages = with pkgs; [
# Video & image processing
ffmpeg

View File

@@ -1,8 +1,8 @@
{
# pkgs
...
}:
{
# {
# pkgs
# ...
# }
_: {
programs = {
nano.enable = true;
hyprland = {

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
cmatrix
cowsay

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# File management
trash-cli

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
virt-viewer
# lazydocker

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) printEnable;
in
{
in {
services = {
printing = {
enable = printEnable;

View File

@@ -1,5 +1,4 @@
{ profile, ... }:
{
{profile, ...}: {
# Services to start
services = {
libinput.enable = true; # Input Handling
@@ -12,14 +11,17 @@
PasswordAuthentication = true; # Users can SSH using kb and password
KbdInteractiveAuthentication = true;
};
ports = [ 22 ];
ports = [22];
};
blueman.enable = true; # Bluetooth Support
tumbler.enable = true; # Image/video preview
gnome.gnome-keyring.enable = true;
smartd = {
enable = if profile == "vm" then false else true;
enable =
if profile == "vm"
then false
else true;
autodetect = true;
};
pipewire = {

View File

@@ -1,12 +1,11 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = true;
extraCompatPackages = [ pkgs.proton-ge-bin ];
extraCompatPackages = [pkgs.proton-ge-bin];
};
# gamescope = {
# enable = true;

View File

@@ -2,11 +2,9 @@
pkgs,
host,
...
}:
let
}: let
inherit (import ../../hosts/${host}/variables.nix) stylixImage;
in
{
in {
# Styling Options
stylix = {
enable = true;

View File

@@ -1,5 +1,4 @@
{ username, ... }:
{
{username, ...}: {
services.syncthing = {
enable = false;
user = "${username}";

View File

@@ -1,9 +1,12 @@
{ host, ... }:
let
inherit (import ../../hosts/${host}/variables.nix) consoleKeyMap;
in
{
host,
inputs,
...
}: let
inherit (import ../../hosts/${host}/variables.nix) consoleKeyMap;
in {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
settings = {
download-buffer-size = 200000000;
auto-optimise-store = true;
@@ -11,22 +14,24 @@ in
"nix-command"
"flakes"
];
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
};
time.timeZone = "Europe/Warsaw";
i18n.defaultLocale = "pl_PL.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "pl_PL.UTF-8";
LC_IDENTIFICATION = "pl_PL.UTF-8";
LC_MEASUREMENT = "pl_PL.UTF-8";
LC_MONETARY = "pl_PL.UTF-8";
LC_NAME = "pl_PL.UTF-8";
LC_NUMERIC = "pl_PL.UTF-8";
LC_PAPER = "pl_PL.UTF-8";
LC_TELEPHONE = "pl_PL.UTF-8";
LC_TIME = "pl_PL.UTF-8";
i18n = {
defaultLocale = "pl_PL.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "pl_PL.UTF-8";
LC_IDENTIFICATION = "pl_PL.UTF-8";
LC_MEASUREMENT = "pl_PL.UTF-8";
LC_MONETARY = "pl_PL.UTF-8";
LC_NAME = "pl_PL.UTF-8";
LC_NUMERIC = "pl_PL.UTF-8";
LC_PAPER = "pl_PL.UTF-8";
LC_TELEPHONE = "pl_PL.UTF-8";
LC_TIME = "pl_PL.UTF-8";
};
};
environment.variables = {
NIXOS_OZONE_WL = "1";

View File

@@ -1,8 +1,4 @@
{
pkgs,
...
}:
{
{pkgs, ...}: {
programs = {
thunar = {
enable = true;

View File

@@ -6,12 +6,10 @@
profile,
system,
...
}:
let
}: let
inherit (import ../../hosts/${host}/variables.nix) gitUsername;
in
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
in {
imports = [inputs.home-manager.nixosModules.home-manager];
home-manager = {
useUserPackages = true;
useGlobalPkgs = false;
@@ -26,7 +24,7 @@ in
;
};
users.${username} = {
imports = [ ./../home ];
imports = [./../home];
home = {
username = "${username}";
homeDirectory = "/home/${username}";
@@ -52,5 +50,5 @@ in
shell = pkgs.bash;
ignoreShellProgramCheck = true;
};
nix.settings.allowed-users = [ "${username}" ];
nix.settings.allowed-users = ["${username}"];
}

View File

@@ -1,5 +1,4 @@
{ ... }:
{
_: {
# Only enable either docker or podman -- Not both
virtualisation = {
docker.enable = true;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
xdg.portal = {
enable = true;
wlr.enable = true;
@@ -7,6 +6,6 @@
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
];
configPackages = [ pkgs.hyprland ];
configPackages = [pkgs.hyprland];
};
}

View File

@@ -1,8 +1,6 @@
{ host, ... }:
let
{host, ...}: let
inherit (import ../../hosts/${host}/variables.nix) keyboardLayout;
in
{
in {
services.xserver = {
enable = true;
xkb = {