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

View file

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

View file

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

View file

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

View file

@ -1,12 +1,11 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
{ config
, lib
, pkgs
, modulesPath
, ...
}: {
imports = [
(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,
lib,
pkgs,
...
{ config
, lib
, pkgs
, ...
}: {
specialisation = {
powersave.configuration = {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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