chore: run nixfmt

This commit is contained in:
Youwen Wu 2024-07-21 19:02:10 -07:00
parent c72ff260db
commit 420d932dec
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
4 changed files with 149 additions and 172 deletions

View file

@ -5,10 +5,9 @@
{ config, inputs, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader = {
@ -51,9 +50,7 @@
LC_TIME = "en_US.UTF-8";
};
systemd.services = {
NetworkManager-wait-online.enable = false;
};
systemd.services = { NetworkManager-wait-online.enable = false; };
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
@ -66,7 +63,8 @@
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
package =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
};
# Enable the KDE Plasma Desktop Environment.
@ -117,8 +115,9 @@
nix.settings = {
trusted-users = [ "root" "youwen" ];
experimental-features = [ "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=" ];
};
# Allow unfree packages
@ -171,22 +170,22 @@
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
@ -206,13 +205,11 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
hardware.opengl = {
enable = true;
};
hardware.opengl = { enable = true; };
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
services.xserver.videoDrivers = ["nvidia"];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;