mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 08:46:11 +01:00
alejandra format
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
# text = ''
|
||||
# Xcursor.theme: "Bibata-Modern-Classic"
|
||||
# Xcursor.size: 18
|
||||
# '';
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,18 +16,18 @@
|
||||
# history limit
|
||||
set -g history-limit 5000
|
||||
|
||||
# increase repeat time
|
||||
# increase repeat time
|
||||
set -g repeat-time 1000
|
||||
|
||||
# decrese command delay
|
||||
set -sg escape-time 1
|
||||
set -sg escape-time 1
|
||||
|
||||
# faster key repetition
|
||||
set -s escape-time 0
|
||||
set -s escape-time 0
|
||||
|
||||
setw -g aggressive-resize on
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# reload tmux while using tmux
|
||||
# reload tmux while using tmux
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
|
||||
|
||||
# Shift Alt vim keys to switch windows
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
};
|
||||
|
||||
services.blueman.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [ bluez ];
|
||||
|
||||
environment.systemPackages = with pkgs; [bluez];
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This file defines overlays
|
||||
{inputs, ...}: {
|
||||
# This one brings our custom packages from the 'pkgs' directory
|
||||
additions = final: _prev:
|
||||
additions = final: _prev:
|
||||
import ../pkgs {pkgs = final;};
|
||||
|
||||
# This one contains whatever you want to overlay
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Custom packages, that can be defined similarly to ones from nixpkgs
|
||||
# You can build them using 'nix build .#example'
|
||||
{
|
||||
pkgs ? import <nixpkgs> {}}: rec {
|
||||
{pkgs ? import <nixpkgs> {}}: rec {
|
||||
# example = pkgs.callPackage ./example { };
|
||||
dwm-customized = pkgs.callPackage ./dwm-customized {};
|
||||
lmstudio = pkgs.callPackage ./lmstudio {};
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
stdenv,
|
||||
pkgs,
|
||||
libX11,
|
||||
libXinerama,
|
||||
libXft,
|
||||
...
|
||||
{
|
||||
stdenv,
|
||||
pkgs,
|
||||
libX11,
|
||||
libXinerama,
|
||||
libXft,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "dwm-customized";
|
||||
@@ -12,16 +12,16 @@ stdenv.mkDerivation {
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "eRgo35";
|
||||
repo = "dwm";
|
||||
rev = "d4fed3cac603ea386d57b8c96f6bc49b3c2eec64";
|
||||
repo = "dwm";
|
||||
rev = "d4fed3cac603ea386d57b8c96f6bc49b3c2eec64";
|
||||
sha256 = "sha256-pQMoxKbvWJLznpzcl91yPuB4ugxXW1PnslDM/877ZqA=";
|
||||
};
|
||||
|
||||
# unpackPhase = ''tar -xf $src'';
|
||||
|
||||
buildInputs = [ libX11 libXinerama libXft ];
|
||||
|
||||
buildPhase = ''make'';
|
||||
buildInputs = [libX11 libXinerama libXft];
|
||||
|
||||
buildPhase = ''make'';
|
||||
|
||||
installPhase = ''make PREFIX=$out DESTDIR="" install'';
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{ lib
|
||||
, appimageTools
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
let
|
||||
{
|
||||
lib,
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
}: let
|
||||
pname = "lmstudio";
|
||||
version = "0.2.18";
|
||||
src = fetchurl {
|
||||
@@ -11,29 +10,29 @@ let
|
||||
hash = "sha256-cUa0fjV7xx6+2tnGVP7uLG0QQb44LhP2nYsn6Qn0al4=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||
appimageContents = appimageTools.extractType2 {inherit pname version src;};
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.ocl-icd ];
|
||||
extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [pkgs.ocl-icd];
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/applications
|
||||
mv $out/bin/lmstudio-${version} $out/bin/lmstudio
|
||||
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||
install -m 444 -D ${appimageContents}/lm-studio.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/lm-studio.desktop \
|
||||
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=lmstudio'
|
||||
'';
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/applications
|
||||
mv $out/bin/lmstudio-${version} $out/bin/lmstudio
|
||||
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||
install -m 444 -D ${appimageContents}/lm-studio.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/lm-studio.desktop \
|
||||
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=lmstudio'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "LM Studio is an easy to use desktop app for experimenting with local and open-source Large Language Models (LLMs)";
|
||||
homepage = "https://lmstudio.ai/";
|
||||
license = lib.licenses.unfree;
|
||||
mainProgram = "lmstudio";
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
platforms = lib.platforms.linux;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
}
|
||||
meta = {
|
||||
description = "LM Studio is an easy to use desktop app for experimenting with local and open-source Large Language Models (LLMs)";
|
||||
homepage = "https://lmstudio.ai/";
|
||||
license = lib.licenses.unfree;
|
||||
mainProgram = "lmstudio";
|
||||
maintainers = with lib.maintainers; [drupol];
|
||||
platforms = lib.platforms.linux;
|
||||
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user