chore(fmt): use nixpkgs-fmt

This commit is contained in:
Zhongheng Liu 2025-01-08 14:13:31 +02:00
commit ecaf5df80a
Signed by: steven
GPG key ID: 805A28B071DAD84B
22 changed files with 151 additions and 164 deletions

View file

@ -1,8 +1,8 @@
{ { config
config, , pkgs
pkgs, , ...
... }:
}: let let
distro-grub-themes = pkgs.stdenv.mkDerivation { distro-grub-themes = pkgs.stdenv.mkDerivation {
pname = "distro-grub-themes"; pname = "distro-grub-themes";
version = "3.1"; version = "3.1";
@ -25,7 +25,8 @@
}; };
installPhase = "cp -r xenlism-grub-1080p-nixos/Xenlism-Nixos $out"; installPhase = "cp -r xenlism-grub-1080p-nixos/Xenlism-Nixos $out";
}; };
in { in
{
environment.systemPackages = with pkgs; [ hack-font ]; environment.systemPackages = with pkgs; [ hack-font ];
#fileSystems."/mnt/winsys" = { #fileSystems."/mnt/winsys" = {
# device = "/dev/nvme0n1p5"; # device = "/dev/nvme0n1p5";

View file

@ -1,16 +1,14 @@
# This is your system's configuration file. # This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix) # Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{ { inputs
inputs, , lib
lib, , config
config, , pkgs
pkgs, , ...
...
}: { }: {
imports = [ imports = [
../common/variables.nix ../common/variables.nix
./greetd.nix ./greetd.nix
#./ly.nix
./bootloader.nix ./bootloader.nix
./nvidia.nix ./nvidia.nix
./fonts.nix ./fonts.nix
@ -23,6 +21,7 @@
FLAKE = config.myConfigLocation; FLAKE = config.myConfigLocation;
MANPAGER = "nvim +Man!"; MANPAGER = "nvim +Man!";
NVD_BACKEND = "direct"; NVD_BACKEND = "direct";
NIXOS_OZONE_WL = "1";
# GTK_IM_MODULE = lib.mkForce ""; # GTK_IM_MODULE = lib.mkForce "";
}; };
services.keyd = { services.keyd = {
@ -161,9 +160,11 @@
}; };
}; };
nix = let nix =
let
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs; flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
in { in
{
settings = { settings = {
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";
# flake-registry = ""; # flake-registry = "";

View file

@ -1,8 +1,7 @@
{ { config
config, , lib
lib, , pkgs
pkgs, , ...
...
}: { }: {
networking.extraHosts = '' networking.extraHosts = ''
# home IP mapping # home IP mapping

View file

@ -1,11 +1,12 @@
{ { pkgs
pkgs, , config
config, , lib
lib, , ...
... }:
}: let let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet"; tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
in { in
{
services.greetd = { services.greetd = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,12 +1,11 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ { config
config, , lib
lib, , pkgs
pkgs, , modulesPath
modulesPath, , ...
...
}: { }: {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")

View file

@ -1,9 +0,0 @@
{
pkgs,
config,
...
}: {
services.displayManager.ly = {
enable = true;
};
}

View file

@ -1,8 +1,7 @@
{ { config
config, , lib
lib, , pkgs
pkgs, , ...
...
}: { }: {
specialisation = { specialisation = {
powersave.configuration = { powersave.configuration = {

View file

@ -10,5 +10,6 @@
./power_management.service.nix ./power_management.service.nix
./seatd.service.nix ./seatd.service.nix
./logind.service.nix ./logind.service.nix
#./mpd.service.nix
]; ];
} }

View file

@ -1,8 +1,7 @@
{ { pkgs
pkgs, , config
config, , lib
lib, , ...
...
}: { }: {
services.logind.extraConfig = '' services.logind.extraConfig = ''
# don't shutdown in short press # don't shutdown in short press

View file

@ -1,7 +1,6 @@
{ { pkgs
pkgs, , config
config, , ...
...
}: { }: {
services.nginx = { services.nginx = {
enable = true; enable = true;

View file

@ -1,4 +1,5 @@
{pkgs, ...}: let { pkgs, ... }:
let
pw_rnnoise_config = { pw_rnnoise_config = {
"context.modules" = [ "context.modules" = [
{ {
@ -30,7 +31,8 @@
} }
]; ];
}; };
in { in
{
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa = { alsa = {

View file

@ -1,8 +1,7 @@
{ { pkgs
pkgs, , config
config, , lib
lib, , ...
...
}: { }: {
services.tlp = { services.tlp = {
enable = true; enable = true;

View file

@ -1,8 +1,7 @@
{ { pkgs
pkgs, , config
config, , lib
lib, , ...
...
}: { }: {
services.seatd = { services.seatd = {
enable = true; enable = true;

View file

@ -1,8 +1,7 @@
{ { pkgs
pkgs, , config
config, , lib
lib, , ...
...
}: { }: {
services = { services = {
syncthing = { syncthing = {

View file

@ -1,7 +1,6 @@
{ { pkgs
pkgs, , config
config, , ...
...
}: { }: {
services.tailscale = { services.tailscale = {
enable = true; enable = true;

View file

@ -1,8 +1,7 @@
{ { pkgs
pkgs, , lib
lib, , config
config, , ...
...
}: { }: {
virtualisation = { virtualisation = {
libvirtd.enable = true; libvirtd.enable = true;