Formatter: Switch to alejandra

I like its style better
This commit is contained in:
2026-03-15 17:37:50 +01:00
parent 1f1a76b92d
commit a81caa8e1b
49 changed files with 75 additions and 183 deletions

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
imports = [ imports = [
./modules ./modules

View File

@@ -27,24 +27,23 @@
naersk-lib = pkgs.callPackage naersk { }; naersk-lib = pkgs.callPackage naersk { };
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
pkg-config cargo
cmake cmake
makeWrapper makeWrapper
cargo pkg-config
rustc rustc
]; ];
runtimeLibs = with pkgs; [ runtimeLibs = with pkgs; [
wayland
libxkbcommon
libglvnd
fontconfig fontconfig
libglvnd
libX11 libX11
libXcursor libXcursor
libXi libXi
libxkbcommon
libXrandr libXrandr
wayland
]; ];
in in
{ {
packages.${system}.default = naersk-lib.buildPackage { packages.${system}.default = naersk-lib.buildPackage {

View File

@@ -20,23 +20,23 @@
{ {
packages.default = pkgs.stdenv.mkDerivation rec { packages.default = pkgs.stdenv.mkDerivation rec {
pname = "fet"; pname = "fet";
version = "7.7.7"; version = "7.8.0";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://lalescu.ro/liviu/fet/download/fet-${version}.tar.xz"; url = "https://lalescu.ro/liviu/fet/download/fet-${version}.tar.xz";
sha256 = "0ix9h714xdg1fbbij3zays4v9s3arhz3s9n2j1pgnxmabzdxvzg2"; sha256 = "01hr3digrg2qs5wh10qzpgwi4clqmzd46d099r0yrx3278qvz9wj";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;
nativeBuildInputs = [ nativeBuildInputs = with pkgs; [
pkgs.qt6.qmake copyDesktopItems
pkgs.qt6.wrapQtAppsHook qt6.qmake
pkgs.copyDesktopItems qt6.wrapQtAppsHook
]; ];
buildInputs = [ buildInputs = with pkgs; [
pkgs.qt6.qtbase qt6.qtbase
]; ];
configurePhase = '' configurePhase = ''

View File

@@ -1,8 +1,4 @@
{ { pkgs, ... }:
pkgs,
...
}:
{ {
boot = { boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest; kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
nix.settings = { nix.settings = {
substituters = [ substituters = [

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./attic.nix ./attic.nix

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
services.flatpak = { services.flatpak = {
enable = true; enable = true;

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
environment = { environment = {
gnome.excludePackages = with pkgs; [ gnome.excludePackages = with pkgs; [
@@ -27,17 +26,17 @@
systemPackages = with pkgs.gnomeExtensions; [ systemPackages = with pkgs.gnomeExtensions; [
alphabetical-app-grid alphabetical-app-grid
appindicator appindicator
blur-my-shell
bluetooth-quick-connect bluetooth-quick-connect
caffeine blur-my-shell
bubblemail bubblemail
caffeine
color-picker color-picker
dash-to-dock dash-to-dock
middle-click-to-close-in-overview middle-click-to-close-in-overview
solaar-extension
undecorate undecorate
user-themes user-themes
window-is-ready-remover window-is-ready-remover
solaar-extension
]; ];
}; };

View File

@@ -1,8 +1,4 @@
{ { lib, ... }:
lib,
...
}:
{ {
dconf.settings = { dconf.settings = {
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./apps.nix ./apps.nix

View File

@@ -1,8 +1,4 @@
{ { lib, ... }:
lib,
...
}:
{ {
dconf.settings = { dconf.settings = {
"org/gnome/shell/extensions/user-theme" = { "org/gnome/shell/extensions/user-theme" = {
@@ -71,31 +67,31 @@
pipelines = lib.hm.gvariant.mkValue '' pipelines = lib.hm.gvariant.mkValue ''
{ {
'pipeline_default': { 'pipeline_default': {
'name': <'Default'>, 'name': <'Default'>,
'effects': <[ 'effects': <[
{ {
'type': <'native_static_gaussian_blur'>, 'type': <'native_static_gaussian_blur'>,
'id': <'effect_27049338116840'>, 'id': <'effect_27049338116840'>,
'params': <@a{sv} {}> 'params': <@a{sv} {}>
}, },
{ {
'type': <'noise'>, 'type': <'noise'>,
'id': <'effect_90950561821691'>, 'id': <'effect_90950561821691'>,
'params': <{'lightness': <0.64>, 'noise': <0.25>}> 'params': <{'lightness': <0.64>, 'noise': <0.25>}>
} }
]> ]>
}, },
'pipeline_default_rounded': { 'pipeline_default_rounded': {
'name': <'Default rounded'>, 'name': <'Default rounded'>,
'effects': <[ 'effects': <[
{ {
'type': <'native_static_gaussian_blur'>, 'type': <'native_static_gaussian_blur'>,
'id': <'effect_000000000001'>, 'id': <'effect_000000000001'>,
'params': <{'radius': <30>, 'brightness': <0.6>}> 'params': <{'radius': <30>, 'brightness': <0.6>}>
}, },
{ {
'type': <'corner'>, 'type': <'corner'>,
'id': <'effect_000000000002'>, 'id': <'effect_000000000002'>,
'params': <{'radius': <24>}> 'params': <{'radius': <24>}>
} }
]> ]>
@@ -156,7 +152,7 @@
sigma = 30; sigma = 30;
}; };
"org/gnome/shell/ectensions/bubblemail" = { "org/gnome/shell/extensions/bubblemail" = {
newest-first = true; newest-first = true;
}; };
}; };

View File

@@ -1,8 +1,4 @@
{ { lib, ... }:
lib,
...
}:
{ {
dconf.settings = { dconf.settings = {
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./dconf ./dconf

View File

@@ -3,7 +3,6 @@
pkgs, pkgs,
... ...
}: }:
{ {
xdg.dataFile."applications/clion.desktop".text = '' xdg.dataFile."applications/clion.desktop".text = ''
[Desktop Entry] [Desktop Entry]

View File

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

View File

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

View File

@@ -7,7 +7,6 @@
fet, fet,
... ...
}: }:
{ {
nixpkgs = { nixpkgs = {
config = { config = {
@@ -23,10 +22,10 @@
buildInputs = buildInputs =
nprev.buildInputs nprev.buildInputs
++ (with pkgs.gst_all_1; [ ++ (with pkgs.gst_all_1; [
gst-plugins-good
gst-plugins-bad gst-plugins-bad
gst-plugins-ugly
gst-plugins-base gst-plugins-base
gst-plugins-good
gst-plugins-ugly
]); ]);
}); });
}) })
@@ -35,6 +34,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
abootimg abootimg
alejandra
android-tools android-tools
anki anki
appstream appstream
@@ -50,8 +50,8 @@
btrfs-progs btrfs-progs
bubblemail bubblemail
bzip2 bzip2
cisco-packet-tracer_9
curl curl
fet.packages.${pkgs.stdenv.hostPlatform.system}.default
ddcutil ddcutil
discord discord
distrobox distrobox
@@ -59,6 +59,7 @@
docker-compose docker-compose
element-desktop element-desktop
eza eza
fet.packages.${pkgs.stdenv.hostPlatform.system}.default
ffmpeg-full ffmpeg-full
ffmpegthumbnailer ffmpegthumbnailer
file file
@@ -101,6 +102,7 @@
libsForQt5.qtstyleplugins libsForQt5.qtstyleplugins
linux-firmware linux-firmware
lm_sensors lm_sensors
logitech-udev-rules
lrzip lrzip
lsof lsof
lz4 lz4
@@ -119,7 +121,6 @@
ntfs3g ntfs3g
nufraw-thumbnailer nufraw-thumbnailer
obsidian obsidian
cisco-packet-tracer_9
papirus-icon-theme papirus-icon-theme
pbzip2 pbzip2
pciutils pciutils
@@ -130,12 +131,11 @@
protonup-qt protonup-qt
rquickshare rquickshare
saber saber
solaar
logitech-udev-rules
scrcpy scrcpy
screen screen
seafile-client seafile-client
smartmontools smartmontools
solaar
sushi sushi
telegram-desktop telegram-desktop
testdisk testdisk
@@ -144,6 +144,7 @@
tldr tldr
trash-cli trash-cli
tree tree
tumbler
unrar unrar
unzip unzip
usbutils usbutils
@@ -165,15 +166,14 @@
which which
wineWow64Packages.waylandFull wineWow64Packages.waylandFull
wireshark wireshark
tumbler
xz xz
yt-dlp yt-dlp
zip zip
zram-generator zram-generator
zstd zstd
zulu zulu
zulu8
zulu17 zulu17
zulu8
]; ];
fonts = { fonts = {

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
programs = { programs = {
dconf.profiles.gdm.databases = [ dconf.profiles.gdm.databases = [
@@ -43,7 +42,6 @@
enable = true; enable = true;
}; };
bat.enable = true;
zsh.enable = true; zsh.enable = true;
gamemode.enable = true; gamemode.enable = true;

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
services = { services = {
sshd.enable = true; sshd.enable = true;
@@ -69,7 +68,7 @@
btrfs = { btrfs = {
autoScrub = { autoScrub = {
enable = (lib.any (fs: fs.fsType == "btrfs") (lib.attrValues config.fileSystems)); enable = lib.any (fs: fs.fsType == "btrfs") (lib.attrValues config.fileSystems);
interval = "monthly"; interval = "monthly";
}; };
}; };

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix

View File

@@ -8,7 +8,6 @@
modulesPath, modulesPath,
... ...
}: }:
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
@@ -96,7 +95,6 @@
"compress=zstd:10" "compress=zstd:10"
"autodefrag" "autodefrag"
]; ];
}; };
fileSystems."/var" = { fileSystems."/var" = {

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./flatpak.nix ./flatpak.nix

View File

@@ -4,7 +4,5 @@
lib, lib,
... ...
}: }:
{ {
} }

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
let let
gdmMonitorsXml = pkgs.writeText "gdm-monitor.xml" '' gdmMonitorsXml = pkgs.writeText "gdm-monitor.xml" ''
<monitors version="2"> <monitors version="2">

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
environment = { environment = {
systemPackages = with pkgs.gnomeExtensions; [ systemPackages = with pkgs.gnomeExtensions; [

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
dconf.settings = { }; dconf.settings = { };
} }

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./apps.nix ./apps.nix

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
dconf.settings = { }; dconf.settings = { };
} }

View File

@@ -1,8 +1,4 @@
{ { lib, ... }:
lib,
...
}:
{ {
dconf.settings = { dconf.settings = {
"org/gnome/settings-daemon/plugins/media-keys" = { "org/gnome/settings-daemon/plugins/media-keys" = {

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./dconf ./dconf

View File

@@ -5,7 +5,6 @@
czkawka-master, czkawka-master,
... ...
}: }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
amdgpu_top amdgpu_top

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
programs = { programs = {
ccache = { ccache = {
@@ -15,12 +14,12 @@
obs-studio = { obs-studio = {
enable = true; enable = true;
plugins = with pkgs.obs-studio-plugins; [ plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval obs-backgroundremoval
obs-gstreamer
obs-pipewire-audio-capture obs-pipewire-audio-capture
obs-vaapi obs-vaapi
obs-gstreamer
obs-vkcapture obs-vkcapture
wlrobs
]; ];
}; };
}; };

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
zram-generator zram-generator

View File

@@ -1,8 +1,4 @@
{ { lib, ... }:
lib,
...
}:
{ {
virtualisation.vmVariant = { virtualisation.vmVariant = {
virtualisation = { virtualisation = {

6
flake.lock generated
View File

@@ -179,11 +179,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1773519908, "lastModified": 1773563071,
"narHash": "sha256-vAIRk0ZY1j8H0pbD4TuAgPg/JWQjhMdCcLOp4juiIJw=", "narHash": "sha256-p4f6smYpck1hw6gYsT2omq01gnlZ1E7HTpssDQ0fP+g=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "af0e797284377c938d90601b50003415e97bf132", "rev": "1c6f50e5b62030a50799682b6babc9dcc5a271ae",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -30,7 +29,6 @@
graphics = { graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
vaapi-intel-hybrid vaapi-intel-hybrid
vpl-gpu-rt vpl-gpu-rt
]; ];

View File

@@ -8,7 +8,6 @@
modulesPath, modulesPath,
... ...
}: }:
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
@@ -23,6 +22,7 @@
"uas" "uas"
"sd_mod" "sd_mod"
]; ];
kernelModules = [ ]; kernelModules = [ ];
}; };
@@ -110,7 +110,6 @@
options = [ options = [
"defaults" "defaults"
]; ];
} }
]; ];

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./flatpak.nix ./flatpak.nix

View File

@@ -4,7 +4,5 @@
lib, lib,
... ...
}: }:
{ {
} }

View File

@@ -4,7 +4,6 @@
lib, lib,
... ...
}: }:
{ {
environment = { environment = {
systemPackages = with pkgs.gnomeExtensions; [ systemPackages = with pkgs.gnomeExtensions; [

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
dconf.settings = { dconf.settings = {
"org/gnome/Console" = { "org/gnome/Console" = {

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./apps.nix ./apps.nix

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
dconf.settings = { }; dconf.settings = { };
} }

View File

@@ -1,8 +1,4 @@
{ { ... }:
...
}:
{ {
dconf.settings = { dconf.settings = {
"org/gnome/desktop/peripherals/touchpad" = { "org/gnome/desktop/peripherals/touchpad" = {

View File

@@ -1,7 +1,4 @@
{ { ... }:
...
}:
{ {
imports = [ imports = [
./dconf ./dconf

View File

@@ -4,12 +4,11 @@
lib, lib,
... ...
}: }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
btop btop
gnome-power-manager gnome-power-manager
nvtopPackages.intel
intel-gpu-tools intel-gpu-tools
nvtopPackages.intel
]; ];
} }

View File

@@ -1,7 +1,3 @@
{ ... }:
{ {
...
}:
{
} }

View File

@@ -1,8 +1,4 @@
{ { pkgs, ... }:
pkgs,
...
}:
{ {
services.thermald.enable = true; services.thermald.enable = true;
services.power-profiles-daemon.enable = false; services.power-profiles-daemon.enable = false;

3
treefmt.toml Normal file
View File

@@ -0,0 +1,3 @@
[formatter.nix]
command = "alejandra"
includes = ["*.nix"]