Yesterday I tried to get blender cad stuff to work, today I needed to
add focus-follows-mous
This commit is contained in:
parent
52727239f6
commit
fae95bef71
@ -82,6 +82,12 @@
|
||||
vimAlias = true;
|
||||
plugins.bufferline.enable = true;
|
||||
plugins.which-key.enable = true;
|
||||
|
||||
plugins.cmp-tabby = {
|
||||
enable = true;
|
||||
host = "localhost:8337";
|
||||
};
|
||||
|
||||
globals.mapleader = " ";
|
||||
keymaps = [
|
||||
{
|
||||
|
@ -60,6 +60,7 @@
|
||||
"kwinrc"."Desktops"."Number"."value" = 10;
|
||||
"kwinrc"."Desktops"."Rows"."value" = 2;
|
||||
"kwinrc"."Plugins"."cubeEnabled" = true;
|
||||
"kwinrc"."Windows"."FocusPolicy" = "FocusFollowsMouse";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pkgs.openscad
|
||||
pkgs.blender
|
||||
#pkgs.py-slvs
|
||||
pkgs.freecad
|
||||
(pkgs.appimageTools.wrapType2
|
||||
{
|
||||
|
57
pkgs/blender-cadsketcher/default.nix
Normal file
57
pkgs/blender-cadsketcher/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
description = "Blender CAD Sketcher";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
shellHook = ''
|
||||
'';
|
||||
packages = [
|
||||
(
|
||||
let
|
||||
py-slvs = pythonPkgs:
|
||||
pythonPkgs.buildPythonPackage rec {
|
||||
pname = "py-slvs";
|
||||
version = "1.0.6";
|
||||
|
||||
src = pythonPkgs.fetchPypi {
|
||||
pname = "py_slvs";
|
||||
version = "1.0.6";
|
||||
sha256 = "sha256-U6T/aXy0JTC1ptL5oBmch0ytSPmIkRA8XOi31NpArnI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [swig];
|
||||
pyproject = true;
|
||||
|
||||
propagatedBuildInputs = with pythonPkgs; [
|
||||
cmake
|
||||
ninja
|
||||
setuptools
|
||||
scikit-build
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Python binding of SOLVESPACE geometry constraint solver";
|
||||
homepage = "https://github.com/realthunder/slvs_py";
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
};
|
||||
|
||||
blenderCadSketcher = pkgs.blender.withPackages (p: [(py-slvs p)]);
|
||||
in
|
||||
blenderCadSketcher
|
||||
)
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
@ -6,4 +6,5 @@
|
||||
{
|
||||
# example = pkgs.callPackage ./example { };
|
||||
creality-print = pkgs.callPackage ./creality-print { };
|
||||
py-slvs = pkgs.callPackage ./py-slvs { };
|
||||
}
|
||||
|
57
pkgs/py-slvs/default.nix
Normal file
57
pkgs/py-slvs/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
description = "Blender CAD Sketcher";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
shellHook = ''
|
||||
'';
|
||||
packages = [
|
||||
(
|
||||
let
|
||||
py-slvs = pythonPkgs:
|
||||
pythonPkgs.buildPythonPackage rec {
|
||||
pname = "py-slvs";
|
||||
version = "1.0.6";
|
||||
|
||||
src = pythonPkgs.fetchPypi {
|
||||
pname = "py_slvs";
|
||||
version = "1.0.6";
|
||||
sha256 = "sha256-U6T/aXy0JTC1ptL5oBmch0ytSPmIkRA8XOi31NpArnI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [swig];
|
||||
pyproject = true;
|
||||
|
||||
propagatedBuildInputs = with pythonPkgs; [
|
||||
cmake
|
||||
ninja
|
||||
setuptools
|
||||
scikit-build
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Python binding of SOLVESPACE geometry constraint solver";
|
||||
homepage = "https://github.com/realthunder/slvs_py";
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
};
|
||||
|
||||
blenderWithPySlvs = pkgs.blender.withPackages (p: [(py-slvs p)]);
|
||||
in
|
||||
blenderWithPySlvs
|
||||
)
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user