mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
fix(lint): nixfmt the whole tree
This commit is contained in:
parent
643b136863
commit
bf219a30c2
69 changed files with 2605 additions and 1726 deletions
|
|
@ -1,16 +1,32 @@
|
|||
{ config, pkgs, lib, myLib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
myLib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.programs.nvtop;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.aviallon.programs.nvtop = {
|
||||
enable = mkEnableOption "nvtop";
|
||||
backend = mkOption {
|
||||
description = "Which backend to enable";
|
||||
type = with types; listOf (enum [ "nvidia" "amd" "intel" "panthor" "panfrost" "msm" ]);
|
||||
type =
|
||||
with types;
|
||||
listOf (enum [
|
||||
"nvidia"
|
||||
"amd"
|
||||
"intel"
|
||||
"panthor"
|
||||
"panfrost"
|
||||
"msm"
|
||||
]);
|
||||
default = [ "amd" ];
|
||||
};
|
||||
|
||||
|
||||
nvidia = mkEnableOption "Nvidia GPU with proprietary drivers is used";
|
||||
package = mkOption {
|
||||
internal = true;
|
||||
|
|
@ -25,7 +41,8 @@ in {
|
|||
aviallon.programs.nvtop.package = mkDefault (
|
||||
if (length cfg.backend > 1) then
|
||||
pkgs.nvtopPackages.full
|
||||
else pkgs.nvtopPackages.${elemAt cfg.backend 0}
|
||||
else
|
||||
pkgs.nvtopPackages.${elemAt cfg.backend 0}
|
||||
);
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue