feat: use nixfmt

This commit is contained in:
2024-03-26 17:44:14 +01:00
parent 59e6ed992a
commit 3ad3491970
29 changed files with 444 additions and 558 deletions

View File

@@ -18,16 +18,9 @@
hyprland.url = "github:hyprwm/hyprland";
};
outputs = {
nixpkgs,
nur,
home-manager,
ags,
nixvim,
anyrun,
hyprland,
...
} @ inputs: let
outputs =
{ nixpkgs, nur, home-manager, ags, nixvim, anyrun, hyprland, ... }@inputs:
let
inherit (nixpkgs.lib) genAttrs listToAttrs;
eachSystem = genAttrs [ "x86_64-linux" ];
legacyPackages = eachSystem (system:
@@ -37,7 +30,10 @@
allowUnfree = true;
allowUnsupportedSystem = true;
experimental-features = "nix-command flakes";
substituters = ["https://hyprland.cachix.org" "https://cuda-maintainers.cachix.org"];
substituters = [
"https://hyprland.cachix.org"
"https://cuda-maintainers.cachix.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
@@ -48,7 +44,8 @@
(final: prev: {
anyrunPlugins = anyrun.packages.${prev.system};
hyprland = hyprland.packages.${prev.system}.hyprland;
xdg-desktop-portal-hyprland = hyprland.packages.${prev.system}.xdg-desktop-portal-hyprland;
xdg-desktop-portal-hyprland =
hyprland.packages.${prev.system}.xdg-desktop-portal-hyprland;
ags = ags.packages.${prev.system}.default;
gbmonctl = prev.callPackage ./overlays/gbmonctl { };
lpc21isp = prev.callPackage ./overlays/lpc21isp { };
@@ -56,7 +53,8 @@
name = "cura";
version = "5.6.0";
src = prev.fetchurl {
url = "https://github.com/Ultimaker/Cura/releases/download/${version}/UltiMaker-Cura-${version}-linux-X64.AppImage";
url =
"https://github.com/Ultimaker/Cura/releases/download/${version}/UltiMaker-Cura-${version}-linux-X64.AppImage";
hash = "sha256-EHiWoNpLKHPzv6rZrtNgEr7y//iVcRYeV/TaCn8QpEA=";
};
extraPkgs = pkgs: with pkgs; [ ];
@@ -65,13 +63,7 @@
];
});
mkHost = {
hostname,
username,
desktop,
system,
stateVersion,
}:
mkHost = { hostname, username, desktop, system, stateVersion, }:
nixpkgs.lib.nixosSystem {
pkgs = legacyPackages.${system};
modules = [
@@ -86,7 +78,9 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit username desktop stateVersion inputs;};
extraSpecialArgs = {
inherit username desktop stateVersion inputs;
};
users.${username} = import ./home;
};
}

View File

@@ -7,7 +7,8 @@
NPM_CONFIG_CACHE = "${config.xdg.cacheHome}/npm";
NPM_CONFIG_TMP = "${config.xdg.stateHome}/npm";
WINEPREFIX = "${config.xdg.configHome}/wineprefixes/default";
_JAVA_OPTGRADLE_USER_HOMEIONS = ''-Djava.util.prefs.userRoot="${config.xdg.configHome}"/java'';
_JAVA_OPTGRADLE_USER_HOMEIONS =
''-Djava.util.prefs.userRoot="${config.xdg.configHome}"/java'';
GRADLE_USER_HOME = "${config.xdg.configHome}/gradle";
DVDCSS_CACHE = "${config.xdg.cacheHome}/dvdcss";
DOCKER_CONFIG = "${config.xdg.configHome}/docker";

View File

@@ -1,11 +1,4 @@
{
username,
desktop,
stateVersion,
osConfig,
inputs,
...
}: rec {
{ username, desktop, stateVersion, osConfig, inputs, ... }: rec {
home = {
inherit username stateVersion;
homeDirectory = "/home/${username}";

View File

@@ -0,0 +1,39 @@
* {
font-family: "NotoSans NF";
}
window#window {
background: transparent;
}
box#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
border-radius: 24px;
}
entry#entry {
border: none;
box-shadow: none;
padding: 8px 24px;
}
entry#entry,
list#main {
border-radius: 24px;
background: transparent;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
list#plugin {
background: transparent;
}

View File

@@ -11,49 +11,5 @@
y.fraction = 0.2;
closeOnClick = true;
};
extraCss =
/*
css
*/
''
* {
font-family: "NotoSans NF";
}
window#window {
background: transparent;
}
box#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
border-radius: 24px;
}
entry#entry {
border: none;
box-shadow: none;
padding: 8px 24px;
}
entry#entry,
list#main {
border-radius: 24px;
background: transparent;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
list#plugin {
background: transparent;
}
'';
extraCss = builtins.readFile ./anyrun.css;
}

View File

@@ -1,8 +1,4 @@
{
pkgs,
config,
...
}: {
{ pkgs, config, ... }: {
services.darkman = let
wallpaperPath = "${config.home.homeDirectory}/.local/state/wallpaper.jpg";
in {
@@ -44,7 +40,8 @@
'';
meta = with pkgs.lib; {
description = "Framework for dark-mode and light-mode transitions on Linux desktop";
description =
"Framework for dark-mode and light-mode transitions on Linux desktop";
homepage = "https://gitlab.com/WhyNotHugo/darkman";
license = licenses.isc;
maintainers = [ maintainers.ajgrf ];
@@ -58,18 +55,14 @@
};
darkModeScripts = {
kitty-theme =
/*
bash
*/
# bash
''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Frappe
'';
};
lightModeScripts = {
kitty-theme =
/*
bash
*/
# bash
''
${pkgs.kitty}/bin/kitty +kitten themes --reload-in=all --config-file-name ${config.home.homeDirectory}/.config/kitty/current-colors.conf Catppuccin-Latte
'';

View File

@@ -1,12 +1,5 @@
{
config,
pkgs,
lib,
...
}: {
imports = [
./darkman.nix
];
{ config, pkgs, lib, ... }: {
imports = [ ./darkman.nix ];
wayland.windowManager.hyprland = {
enable = true;
@@ -48,13 +41,8 @@
};
bind = import ./keybinds.nix;
bindm = import ./mousebinds.nix;
bindr = [
"SUPER,SUPER_L,exec,pkill anyrun || anyrun"
];
monitor = [
"DP-1,highrr,0x0,1,bitdepth,8"
"DP-1,addreserved,250,0,0,0"
];
bindr = [ "SUPER,SUPER_L,exec,pkill anyrun || anyrun" ];
monitor = [ "DP-1,highrr,0x0,1,bitdepth,8" "DP-1,addreserved,250,0,0,0" ];
workspace = [
"special:calc,border:false,gapsout:200,on-created-empty:[noanim;silent] kitty -e qalc"
];
@@ -96,10 +84,7 @@
disable_splash_rendering = true;
force_default_wallpaper = 0;
};
layerrule = [
"blur, anyrun"
"ignorealpha 0.3, anyrun"
];
layerrule = [ "blur, anyrun" "ignorealpha 0.3, anyrun" ];
decoration = {
drop_shadow = "yes";
shadow_range = 16;
@@ -111,7 +96,7 @@
enabled = true;
size = 8;
passes = 3;
noise = 0.01;
noise = 1.0e-2;
contrast = 0.9;
brightness = 0.8;
};
@@ -138,7 +123,8 @@
enable = true;
package = pkgs.flameshot.overrideAttrs (final: prev: {
cmakeFlags = [ "-DUSE_WAYLAND_CLIPBOARD=1" "-DUSE_WAYLAND_GRIM=true" ];
nativeBuildInputs = prev.nativeBuildInputs ++ [pkgs.libsForQt5.kguiaddons];
nativeBuildInputs = prev.nativeBuildInputs
++ [ pkgs.libsForQt5.kguiaddons ];
});
settings = {
General = {
@@ -165,7 +151,8 @@
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
Restart = "always";
KillMode = "mixed";
Environment = "PATH=/run/current-system/sw/bin/:${with pkgs;
Environment = "PATH=/run/current-system/sw/bin/:${
with pkgs;
lib.makeBinPath [
swww
sassc
@@ -174,11 +161,10 @@
ydotool
kitty
hyprpicker
]}";
};
Install = {
WantedBy = ["graphical-session.target"];
]
}";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
programs.kitty = import ./kitty.nix { inherit pkgs; };
programs.anyrun = import ./anyrun.nix { inherit pkgs; };
@@ -242,9 +228,7 @@
};
programs.fish.loginShellInit =
/*
fish
*/
# fish
''
Hyprland && echo "goodbye" && exit 0 \
|| echo "$status couldn't launch Hyprland" && tty | grep tty1 \

View File

@@ -1,4 +1 @@
[
"SUPER,mouse:272,movewindow"
"SUPER,mouse:273,resizewindow"
]
[ "SUPER,mouse:272,movewindow" "SUPER,mouse:273,resizewindow" ]

View File

@@ -42,9 +42,7 @@
pinta
kdePackages.kdenlive
# friture TODO: broken
(blender.override {
cudaSupport = true;
})
(blender.override { cudaSupport = true; })
openscad-unstable
# development

View File

@@ -1,9 +1,4 @@
{
lib,
stdenv,
fetchFromGitHub,
pkgs,
}:
{ lib, stdenv, fetchFromGitHub, pkgs, }:
stdenv.mkDerivation rec {
pname = "hid-fanatecff-tools";
version = "0.1.0";

View File

@@ -1,3 +1 @@
[
"@angular/language-server"
]
["@angular/language-server"]

View File

@@ -1,8 +1,6 @@
{ pkgs }:
pkgs.threema-desktop.overrideAttrs (prev: {
postFixup =
prev.postFixup
+ ''
postFixup = prev.postFixup + ''
echo "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" >> $out/bin/threema
'';
})

View File

@@ -1,8 +1,4 @@
{
pkgs,
config,
...
}: {
{ pkgs, config, ... }: {
programs = {
home-manager.enable = true;
rbw = {
@@ -20,9 +16,7 @@
gpg.enable = true;
btop = {
enable = true;
settings = {
vim_keys = true;
};
settings = { vim_keys = true; };
};
zsh = {
enable = true;

View File

@@ -43,8 +43,7 @@
default = "Google";
engines = {
"Nix Packages" = {
urls = [
{
urls = [{
template = "https://search.nixos.org/packages";
params = [
{
@@ -56,13 +55,15 @@
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
}];
icon =
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"NixOS Wiki" = {
urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
urls = [{
template = "https://nixos.wiki/index.php?search={searchTerms}";
}];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = [ "@nw" ];

View File

@@ -1,10 +1,9 @@
{pkgs}: let
angular-ls =
(import ../../packages/node-packages {
{ pkgs }:
let
angular-ls = (import ../../packages/node-packages {
inherit pkgs;
nodejs = pkgs.nodejs_18;
})
."@angular/language-server";
})."@angular/language-server";
darkman = pkgs.vimUtils.buildVimPlugin {
name = "darkman";
src = pkgs.buildGoModule rec {
@@ -130,16 +129,14 @@ in {
right = "";
};
sections = {
lualine_a = [
{
lualine_a = [{
name = "mode";
separator = {
right = "";
left = "";
};
icon = "";
}
];
}];
lualine_x = [
{ name = "fancy_lsp_servers"; }
{
@@ -151,15 +148,13 @@ in {
};
}
];
lualine_z = [
{
lualine_z = [{
name = "location";
separator = {
right = "";
left = "";
};
}
];
}];
};
};
auto-save = {
@@ -255,7 +250,7 @@ in {
svelte = [ "prettier" ];
rust = [ "rustfmt" ];
bash = [ "shfmt" ];
nix = ["alejandra"];
nix = [ "nixfmt" ];
};
formatOnSave = {
timeoutMs = 500;
@@ -279,8 +274,7 @@ in {
lsp = {
enable = true;
keymaps = { diagnostic = { }; };
enabledServers = [
{
enabledServers = [{
name = "angularls";
extraOptions = {
cmd = [
@@ -293,9 +287,7 @@ in {
];
on_new_config = {
__raw =
/*
lua
*/
# lua
''
function(new_config, new_root_dir)
new_config.cmd = {
@@ -309,12 +301,17 @@ in {
end
'';
};
filetypes = ["typescript" "html" "typescriptreact" "typescript.tsx" "angular" "html.angular"];
filetypes = [
"typescript"
"html"
"typescriptreact"
"typescript.tsx"
"angular"
"html.angular"
];
on_attach = {
__raw =
/*
lua
*/
# lua
''
function(client, bufnr)
if vim.bo[bufnr].filetype == "html" then
@@ -324,8 +321,7 @@ in {
'';
};
};
}
];
}];
servers = {
html.enable = true;
cssls.enable = true;
@@ -359,9 +355,7 @@ in {
mode = "symbol_text";
cmp = {
after =
/*
lua
*/
# lua
''
function(entry, vim_item, kind)
if entry.source.name == "npm" then
@@ -373,16 +367,16 @@ in {
end
'';
};
symbolMap = {
Copilot = "";
};
symbolMap = { Copilot = ""; };
};
cmp = {
enable = true;
settings = {
mapping = {
"<C-n>" = "cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select})";
"<C-p>" = "cmp.mapping.select_prev_item({behavior = cmp.SelectBehavior.Select})";
"<C-n>" =
"cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select})";
"<C-p>" =
"cmp.mapping.select_prev_item({behavior = cmp.SelectBehavior.Select})";
"<C-Space>" = "cmp.mapping.confirm({select = true})";
"<C-Enter>" = "cmp.mapping.complete()";
};
@@ -401,9 +395,7 @@ in {
];
formatting.fields = [ "abbr" "kind" ];
snippet.expand =
/*
lua
*/
# lua
"function(args) require('luasnip').lsp_expand(args.body) end";
window = {
completion.border = "rounded";
@@ -413,9 +405,7 @@ in {
};
};
which-key = {
enable = true;
};
which-key = { enable = true; };
copilot-lua = {
panel.enabled = false;
@@ -434,9 +424,13 @@ in {
angular-ls
pkgs.nodePackages.typescript-language-server
pkgs.nodePackages.stylelint
pkgs.nodePackages.prettier
pkgs.jq
pkgs.html-tidy
pkgs.alejandra
pkgs.nixfmt
pkgs.stylua
pkgs.shfmt
pkgs.fzf
];
extraPlugins = with pkgs.vimPlugins; [
vim-mergetool

View File

@@ -3,8 +3,6 @@ require("cmp-npm").setup({})
require("rest-nvim").setup({})
require("actions-preview").setup({})
-- require("lspconfig").angularls.setup({})
if vim.g.neovide then
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "*",
@@ -37,7 +35,7 @@ vim.diagnostic.config({
})
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" })
local Terminal = require('toggleterm.terminal').Terminal
local Terminal = require("toggleterm.terminal").Terminal
local lazygit = Terminal:new({
cmd = "lazygit",
dir = "git_dir",
@@ -52,7 +50,6 @@ local lazygit = Terminal:new({
end,
})
function _lazygit_toggle()
lazygit:toggle()
end

View File

@@ -58,7 +58,7 @@
{
key = "hh";
mode = "n";
action = '':Telescope harpoon marks<CR>'';
action = ":Telescope harpoon marks<CR>";
}
{
key = "<leader>sa";
@@ -77,7 +77,8 @@
key = "<leader>xw";
mode = "n";
lua = true;
action = "function() require('trouble').toggle('workspace_diagnostics') end";
action =
"function() require('trouble').toggle('workspace_diagnostics') end";
}
{
key = "<leader>xd";

View File

@@ -1,8 +1,4 @@
{
pkgs,
homeDirectory,
...
}: {
{ pkgs, homeDirectory, ... }: {
services = {
gpg-agent = {
enable = true;

View File

@@ -1,16 +1,8 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
config,
pkgs,
username,
...
}: {
imports = [
./nvidia.nix
./hardware-configuration.nix
];
{ config, pkgs, username, ... }: {
imports = [ ./nvidia.nix ./hardware-configuration.nix ];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
@@ -91,10 +83,7 @@
services.dbus.enable = true;
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
];
extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-kde ];
};
time.timeZone = "Europe/Berlin";
@@ -137,10 +126,7 @@
services.gnome.gnome-online-accounts.enable = true;
services.gnome.evolution-data-server.enable = true;
services.udev.packages = with pkgs; [
oversteer
android-udev-rules
];
services.udev.packages = with pkgs; [ oversteer android-udev-rules ];
virtualisation.docker.rootless = {
enable = true;
@@ -160,7 +146,19 @@
users.defaultUserShell = pkgs.fish;
users.users.${username} = {
isNormalUser = true;
extraGroups = ["networkmanager" "wheel" "audio" "video" "dialout" "plugdev" "scanner" "lp" "input" "adbusers" "cdrom"];
extraGroups = [
"networkmanager"
"wheel"
"audio"
"video"
"dialout"
"plugdev"
"scanner"
"lp"
"input"
"adbusers"
"cdrom"
];
};
# List packages installed in system profile. To search, run:
@@ -199,7 +197,9 @@
noto-fonts-cjk
noto-fonts-emoji
fira-code
(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono" "Noto" "NerdFontsSymbolsOnly"];})
(nerdfonts.override {
fonts = [ "FiraCode" "JetBrainsMono" "Noto" "NerdFontsSymbolsOnly" ];
})
];
fontconfig = {
defaultFonts = {
@@ -208,9 +208,7 @@
};
localConf =
/*
xml
*/
# xml
''
<match target="font">
<test name="family" compare="contains">
@@ -243,9 +241,7 @@
networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openconnect
];
plugins = with pkgs; [ networkmanager-openconnect ];
};
hosts = {

View File

@@ -1,18 +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,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
{ config, lib, pkgs, modulesPath, ... }: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
@@ -27,9 +20,8 @@
fsType = "vfat";
};
swapDevices = [
{device = "/dev/disk/by-uuid/b09fbba2-c97a-41bc-a3cd-8204e30204f8";}
];
swapDevices =
[{ device = "/dev/disk/by-uuid/b09fbba2-c97a-41bc-a3cd-8204e30204f8"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
@@ -39,5 +31,6 @@
# networking.interfaces.eno1.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,23 +1,16 @@
{
config,
lib,
pkgs,
...
}: {
{ config, lib, pkgs, ... }: {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
libvdpau-va-gl
nvidia-vaapi-driver
];
extraPackages = with pkgs; [ libvdpau-va-gl nvidia-vaapi-driver ];
};
services.xserver.videoDrivers = [ "nvidia" ];
boot.kernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
boot.initrd.kernelModules = ["nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm"];
boot.initrd.kernelModules =
[ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
hardware.nvidia = {
modesetting.enable = true;

View File

@@ -1,12 +1,6 @@
{
pkgs,
lib,
config,
...
}: let
cfg = config.hardware.gbmonctl;
in
with lib; {
{ pkgs, lib, config, ... }:
let cfg = config.hardware.gbmonctl;
in with lib; {
options.hardware.gbmonctl = {
enable = mkOption {
type = types.bool;

View File

@@ -1,13 +1,10 @@
{
pkgs,
lib,
config,
...
}:
with lib; let
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.hardware.hid-fanatecff;
kernel = config.boot.kernelPackages.kernel;
fanatecKernelModule = pkgs.callPackage (import ./hid-fanatecff-module.nix) {kernel = kernel;};
fanatecKernelModule =
pkgs.callPackage (import ./hid-fanatecff-module.nix) { kernel = kernel; };
in {
options.hardware.hid-fanatecff = {
enable = mkOption {

View File

@@ -1,9 +1,4 @@
{
lib,
stdenv,
kernel,
fetchFromGitHub,
}:
{ lib, stdenv, kernel, fetchFromGitHub, }:
stdenv.mkDerivation rec {
pname = "hid-fanatecff";
version = "0.1.0";
@@ -17,9 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags =
kernel.makeFlags
++ [
makeFlags = kernel.makeFlags ++ [
"KVERSION=${kernel.modDirVersion}"
"KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
@@ -33,7 +26,8 @@ stdenv.mkDerivation rec {
installTargets = [ "modules_install" ];
meta = with lib; {
description = "Linux kernel driver that aims to add support for FANATEC devices";
description =
"Linux kernel driver that aims to add support for FANATEC devices";
homepage = "https://github.com/gotzl/hid-fanatecff";
license = licenses.gpl2Only;
platforms = platforms.linux;

View File

@@ -1,11 +1,4 @@
{
lib,
pkgs,
buildGoModule,
fetchFromGitHub,
hidapi,
udev,
}:
{ lib, pkgs, buildGoModule, fetchFromGitHub, hidapi, udev, }:
buildGoModule rec {
pname = "gbmonctl";
version = "1d01a090";
@@ -23,7 +16,8 @@ buildGoModule rec {
> $out/lib/udev/rules.d/99-gigabyte-monitor.rules
'';
meta = with lib; {
description = "A CLI tool to change monitor settings over USB to the Gigabyte M32U";
description =
"A CLI tool to change monitor settings over USB to the Gigabyte M32U";
homepage = "https://github.com/kelvie/gbmonctl";
};
}

View File

@@ -1,9 +1,4 @@
{
stdenv,
fetchFromGitHub,
glibc,
lib,
}:
{ stdenv, fetchFromGitHub, glibc, lib, }:
stdenv.mkDerivation {
name = "lpc21isp";
src = fetchFromGitHub {
@@ -18,7 +13,8 @@ stdenv.mkDerivation {
cp lpc21isp $out/bin
'';
meta = with lib; {
description = "Portable command line ISP for NXP LPC family and Analog Devices ADUC70xx";
description =
"Portable command line ISP for NXP LPC family and Analog Devices ADUC70xx";
homepage = "https://github.com/capiman/lpc21isp";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.theaninova ];