chore: nixfmt

This commit is contained in:
Alexandre Cavalheiro 2024-04-04 15:24:35 -03:00
parent ff0f6d4a23
commit 76a755bcdf
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
10 changed files with 55 additions and 85 deletions

View file

@ -4,42 +4,35 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
fileSystems."/" = {
device = "/dev/disk/by-uuid/65e4c115-aff0-4c0e-8799-7309a25ecab6";
fsType = "ext4";
};
fileSystems."/boot" =
{
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2EFE-3A26";
fsType = "vfat";
};
fileSystems."/mnt/ssd" =
{
fileSystems."/mnt/ssd" = {
device = "/dev/disk/by-uuid/f27f2224-d351-46fd-89f5-991de36166ad";
fsType = "ext4";
};
fileSystems."/mnt/internal" =
{
fileSystems."/mnt/internal" = {
device = "/dev/disk/by-uuid/b8541c0d-9146-4388-b217-431f196957cc";
fsType = "ext4";
};
fileSystems."/mnt/media" =
{
fileSystems."/mnt/media" = {
device = "/dev/disk/by-uuid/52c17b8b-46c1-4870-b86c-c3b9f4bd4434";
fsType = "ext4";
};
@ -55,5 +48,6 @@
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,9 +1,7 @@
{ lib, stdenv, fetchFromGitHub, kernel, kmod }:
let
kernelDirectory = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
in
stdenv.mkDerivation {
let kernelDirectory = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
in stdenv.mkDerivation {
pname = "zenergy";
version = "a3e124477ee8197015481156b90100d49fa3cd84";
@ -16,9 +14,7 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" "pic" ];
makeFlags = kernel.makeFlags ++ [
"KDIR=${kernelDirectory}"
];
makeFlags = kernel.makeFlags ++ [ "KDIR=${kernelDirectory}" ];
preBuild = ''
substituteInPlace Makefile --replace-fail "PWD modules_install" "PWD INSTALL_MOD_PATH=$out modules_install"
@ -33,7 +29,8 @@ stdenv.mkDerivation {
outputs = [ "out" ];
meta = with lib; {
description = "Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely.";
description =
"Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely.";
homepage = "https://github.com/BoukeHaarsma23/zenergy";
license = licenses.gpl2Only;
maintainers = with maintainers; [ wizardlink ];

View file

@ -28,13 +28,9 @@
zoxide init --cmd cd fish | source
'';
shellAbbrs = {
z = "zoxide";
};
shellAbbrs = { z = "zoxide"; };
shellAliases = {
del = "trash_file";
};
shellAliases = { del = "trash_file"; };
functions = {
fish_prompt.body = ''

View file

@ -47,13 +47,9 @@
gpgsign = true;
};
tag = {
gpgsign = true;
};
tag = { gpgsign = true; };
difftool = {
prompt = true;
};
difftool = { prompt = true; };
mergetool = {
# https://www.git-scm.com/docs/git-mergetool#Documentation/git-mergetool.txt---no-prompt
@ -79,13 +75,9 @@
signingkey = "A1D3A2B4E14BD7C0445BB749A5767B54367CFBDF";
};
pull = {
ff = "only";
};
pull = { ff = "only"; };
init = {
defaultBranch = "main";
};
init = { defaultBranch = "main"; };
credential = {
helper = "/usr/libexec/git-core/git-credential-libsecret";

View file

@ -33,7 +33,6 @@
cpu_stats = true;
cpu_temp = true;
# IO Statistics
io_read = true;
io_stats = true;

View file

@ -1,8 +1,7 @@
{ pkgs, ... }:
{
programs.obs-studio =
{
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
input-overlay

View file

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
services.caddy = {
enable = true;

View file

@ -10,7 +10,8 @@
jellyfin-web = pkgs.jellyfin-web.overrideAttrs (oldAttrs: {
patches = [
(pkgs.fetchpatch {
url = "https://github.com/jellyfin/jellyfin-web/compare/v${oldAttrs.version}...ConfusedPolarBear:jellyfin-web:intros.diff";
url =
"https://github.com/jellyfin/jellyfin-web/compare/v${oldAttrs.version}...ConfusedPolarBear:jellyfin-web:intros.diff";
hash = "sha256-qm4N4wMUFc4I53oQJUK1Six0cahVYz3J+FgO2vvSvXM=";
})
];

View file

@ -1,16 +1,10 @@
{ fetchFromGitHub
, flavor ? "Mocha"
, lib
, stdenvNoCC
}:
{ fetchFromGitHub, flavor ? "Mocha", lib, stdenvNoCC }:
let
validFlavors = [ "Frappe" "Latte" "Macchiato" "Mocha" ];
pname = "catppucin-qt5ct";
in
lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
in lib.checkListOfEnum "${pname}: flavors" validFlavors [ flavor ]
stdenvNoCC.mkDerivation
{
stdenvNoCC.mkDerivation {
inherit pname;
version = "unstable-2023-10-24";

View file

@ -7,8 +7,7 @@ let
url = imgLink;
sha256 = "sha256-lrQv8VAks86zMzRaF9VEZotp78O9M7/dV8jZNTRb6SY=";
};
in
pkgs.stdenv.mkDerivation {
in pkgs.stdenv.mkDerivation {
name = "sddm-theme";
src = pkgs.fetchFromGitHub {
owner = "MarianArlt";