Compare commits

88 Commits

Author SHA1 Message Date
Gitea Actions
b8170a30b8 Update flake.lock 2025-04-28 2026-01-25 00:30:46 +00:00
Gitea Actions
c26da372de Update flake.lock 2025-04-27 2026-01-25 00:30:46 +00:00
Gitea Actions
8b0d7b452a Update flake.lock 2025-04-26 2026-01-25 00:30:46 +00:00
Gitea Actions
029714bbfd Update flake.lock 2025-04-25 2026-01-25 00:30:46 +00:00
Gitea Actions
dfc2c3a951 Update flake.lock 2025-04-24 2026-01-25 00:30:46 +00:00
Gitea Actions
63f53c6e27 Update flake.lock 2025-04-23 2026-01-25 00:30:46 +00:00
Gitea Actions
a07593b8e2 Update flake.lock 2025-04-22 2026-01-25 00:30:46 +00:00
Gitea Actions
59c99c954b Update flake.lock 2025-04-21 2026-01-25 00:30:46 +00:00
Gitea Actions
a8b61d236f Update flake.lock 2025-04-20 2026-01-25 00:30:46 +00:00
Gitea Actions
c7a317cfd2 Update flake.lock 2025-04-19 2026-01-25 00:30:46 +00:00
Gitea Actions
000e7d5ed8 Update flake.lock 2025-04-18 2026-01-25 00:30:46 +00:00
Gitea Actions
2a65e9f610 Update flake.lock 2025-04-17 2026-01-25 00:30:46 +00:00
Gitea Actions
376000b090 Update flake.lock 2025-04-16 2026-01-25 00:30:46 +00:00
Gitea Actions
23c449dae7 Update flake.lock 2025-04-15 2026-01-25 00:30:46 +00:00
Gitea Actions
91ad673f27 Update flake.lock 2025-04-14 2026-01-25 00:30:46 +00:00
Gitea Actions
4638c81857 Update flake.lock 2025-04-13 2026-01-25 00:30:46 +00:00
Gitea Actions
34858dd3c3 Update flake.lock 2025-04-12 2026-01-25 00:30:46 +00:00
Gitea Actions
61747e47c1 Update flake.lock 2025-04-11 2026-01-25 00:30:46 +00:00
Gitea Actions
9e105f4e08 Update flake.lock 2025-04-10 2026-01-25 00:30:46 +00:00
Gitea Actions
774659a259 Update flake.lock 2025-04-09 2026-01-25 00:30:46 +00:00
Gitea Actions
3675ec2fba Update flake.lock 2025-04-08 2026-01-25 00:30:46 +00:00
Gitea Actions
08478865d5 Update flake.lock 2025-04-07 2026-01-25 00:30:46 +00:00
Gitea Actions
15e9f8764d Update flake.lock 2025-04-06 2026-01-25 00:30:46 +00:00
Gitea Actions
ae1b6e2de0 Update flake.lock 2025-04-05 2026-01-25 00:30:46 +00:00
Gitea Actions
177c8ac20b Update flake.lock 2025-04-04 2026-01-25 00:30:46 +00:00
Gitea Actions
c2d46096fb Update flake.lock 2025-04-03 2026-01-25 00:30:46 +00:00
Gitea Actions
e75adc4eee Update flake.lock 2025-04-02 2026-01-25 00:30:46 +00:00
Gitea Actions
50b240a1df Update flake.lock 2025-04-01 2026-01-25 00:30:46 +00:00
Gitea Actions
8c8140fc8f Update flake.lock 2025-03-31 2026-01-25 00:30:46 +00:00
Gitea Actions
55b07d9fc2 Update flake.lock 2025-03-30 2026-01-25 00:30:46 +00:00
Gitea Actions
610001326e Update flake.lock 2025-03-29 2026-01-25 00:30:46 +00:00
Gitea Actions
7a8dc89e20 Update flake.lock 2025-03-28 2026-01-25 00:30:46 +00:00
Gitea Actions
1caecebd3b Update flake.lock 2025-03-27 2026-01-25 00:30:46 +00:00
Gitea Actions
716200ee80 Update flake.lock 2025-03-26 2026-01-25 00:30:46 +00:00
Gitea Actions
ffe813fd77 Update flake.lock 2025-03-25 2026-01-25 00:30:46 +00:00
Gitea Actions
1afef0ff13 Update flake.lock 2025-03-24 2026-01-25 00:30:46 +00:00
Gitea Actions
5a941ab974 Update flake.lock 2025-03-23 2026-01-25 00:30:46 +00:00
af54219f5f Install element-desktop too
Some checks failed
Update Nix Flake / update-flake (push) Failing after 18s
2026-01-24 16:37:09 +01:00
b6f59055d8 Fix quickstart.nix 2026-01-24 16:36:04 +01:00
cb990c0cd4 Switch to element-desktop 2026-01-24 16:35:54 +01:00
c896e02bf1 Allow unfree packages with "run" and "shell" commands
Some checks failed
Update Nix Flake / update-flake (push) Failing after 16s
2026-01-22 06:56:06 +01:00
c1e031efa9 Fix "systems deprecated" warning
Some checks failed
Update Nix Flake / update-flake (push) Failing after 49s
2026-01-20 21:01:05 +01:00
19f213ca8c development: install opencode 2026-01-20 20:40:09 +01:00
a0ebb3f259 builder: add ollama and ui 2026-01-20 20:39:32 +01:00
3a994a3b8d Add more packages to quickstart configuration 2026-01-20 20:39:03 +01:00
3b4c0e4a63 Clean up configs 2026-01-20 20:38:53 +01:00
b15dd4ce86 move zoxide from yazi to fish config 2026-01-20 20:38:32 +01:00
db5514062c Update readme 2026-01-20 20:24:25 +01:00
7b500ee994 Make v3ms07 a generic quickstart configuration 2026-01-20 20:24:06 +01:00
07eb4664f9 Update flake 2026-01-20 20:04:32 +01:00
872f80e92c Remove non-working packages 2026-01-20 20:02:48 +01:00
562f873f97 hyprland: adapt keyboard shortcuts 2026-01-20 20:02:32 +01:00
2f5868fcca Add config for v3ms07 2026-01-20 20:02:01 +01:00
e1c1f6e104 emacs: install latex for org mode previews
Some checks failed
Update Nix Flake / update-flake (push) Failing after 14s
2026-01-06 12:10:16 +01:00
3bdf73557b desktop: remove vivaldi 2026-01-06 12:04:16 +01:00
bb9988245a hyprland: add submaps for common open commands 2026-01-06 12:04:05 +01:00
713f5bfe8c update flake 2026-01-06 12:03:55 +01:00
c26f4ccd9a kardorf: install steam
Some checks failed
Update Nix Flake / update-flake (push) Failing after 14s
2025-12-29 06:21:10 +01:00
d84bfd4628 use network manager dns instead of resolved
Some checks failed
Update Nix Flake / update-flake (push) Failing after 12s
2025-12-24 06:48:22 +01:00
fb6ac408e1 format code 2025-12-24 06:47:56 +01:00
f01b079931 emacs: add ltex-ls-plus language server 2025-12-24 06:47:43 +01:00
78990e6414 fix typst-languagetool installation typo
Some checks failed
Update Nix Flake / update-flake (push) Failing after 12s
2025-12-18 10:37:10 +01:00
cef602d758 update flake 2025-12-18 10:37:00 +01:00
368e741211 add typst-languagetool package 2025-12-18 10:36:21 +01:00
fec13e08b9 dev suite: remove latex
Some checks failed
Update Nix Flake / update-flake (push) Failing after 13s
2025-12-13 07:59:44 +01:00
a540ca622d kardorf: switch to hyprland 2025-12-13 07:59:35 +01:00
7fb0bcdac0 nixvim: add orgmode support 2025-12-13 07:59:20 +01:00
b7726fce94 hyprland: fix cursor tearing 2025-12-13 07:58:54 +01:00
30c987bd9b hm: remove my binarycache for hm-standalone
Some checks failed
Update Nix Flake / update-flake (push) Failing after 12s
Normally I wont have VPN access on standalone
2025-12-08 17:12:10 +01:00
539e9a0b8e v3ms: add qt-distrobox 2025-12-08 17:09:45 +01:00
1e4593ea17 home: add qt-distrobox config 2025-12-08 17:09:14 +01:00
ec8a71de95 open-messaging: update name of telegram binary
Some checks failed
Update Nix Flake / update-flake (push) Failing after 14s
2025-12-06 11:30:42 +01:00
0c39388b21 gc: change to older than 30
the old +3 did not seem to work
2025-12-06 11:28:02 +01:00
ebb043b589 format code 2025-12-06 11:24:15 +01:00
fcfc9f6450 hm: make it backup conflicting files 2025-12-06 11:24:08 +01:00
fe3cd057cd fix regreet with hyprland 2025-12-06 11:23:41 +01:00
b9cdb9299e auto-upgrade: commit flake.lock if upgrading worked 2025-12-06 09:22:21 +01:00
8b6ba76848 pianonix: add rpi-ws281x package 2025-12-06 09:22:02 +01:00
2e79bd9e00 nix: do not optimise store on build, but regularly 2025-12-06 09:21:30 +01:00
cfdc9f7001 aspi: activate wireguard 2025-12-06 09:21:17 +01:00
a12b50edfa pianonix: try getting piano-led-visualizer to run
Still did not work, using raspberrypi os
2025-12-06 09:20:52 +01:00
194d4bcec0 tmux: use vim bindings and better prefix 2025-12-06 09:20:00 +01:00
5badb000be install vagrant and qtcreator 2025-12-06 09:19:38 +01:00
08b3f2c194 emacs: add more tools for c++ and typst development 2025-12-06 09:19:20 +01:00
5f9a110464 update to nixos 25.11 2025-12-06 09:19:06 +01:00
bcd041484d Auto-update flake.lock 2025-12-05 14:03:59 +01:00
fd3b9f20f0 update flake, add tmux
Some checks failed
Update Nix Flake / update-flake (push) Failing after 14s
2025-11-25 20:13:12 +01:00
bc160af26a fix open-messaging and workspace assignments
Some checks failed
Update Nix Flake / update-flake (push) Failing after 15s
2025-11-17 07:05:41 +01:00
40 changed files with 1180 additions and 240 deletions

View File

@@ -1,7 +1,12 @@
#+title: My dotfiles #+title: My dotfiles
My dotfiles for which I am using =nix=. * Quick start for home-manger only (no need to pull this repo)
The structure is managed by [[https://snowfall.org/guides/lib/quickstart/][Snowfall lib]] - Install nix using the https://github.com/DeterminateSystems/nix-installer
- Then run
#+begin_src shell
nix run nixpkgs#home-manager -- switch --flake git+https://gitlab.julian-mutter.de/julian/dotfiles.git#julian@quickstart
#+end_src
- Done
* Machine selection * Machine selection
=home-manager= automatically searches for =user= or =user@hostname= config in the flake, so specify one of those or you will have to manually specify them: =home-manager= automatically searches for =user= or =user@hostname= config in the flake, so specify one of those or you will have to manually specify them:

843
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@
inputs = { inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
systems.url = "github:nix-systems/default-linux"; systems.url = "github:nix-systems/default-linux";
nixos-hardware.url = "github:nixos/nixos-hardware"; nixos-hardware.url = "github:nixos/nixos-hardware";
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
@@ -16,7 +16,7 @@
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-25.05"; url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
sops-nix = { sops-nix = {
@@ -38,7 +38,7 @@
flake = false; flake = false;
}; };
nixvim = { nixvim = {
url = "github:nix-community/nixvim/nixos-25.05"; url = "github:nix-community/nixvim/nixos-25.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-matlab = { nix-matlab = {
@@ -100,12 +100,12 @@
}; };
}; };
# Piano raspberry pi # Piano raspberry pi
pianonix = lib.nixosSystem { # pianonix = lib.nixosSystem {
modules = [./hosts/pianonix]; # modules = [./hosts/pianonix];
specialArgs = { # specialArgs = {
inherit inputs outputs; # inherit inputs outputs;
}; # };
}; # };
kardorf = lib.nixosSystem { kardorf = lib.nixosSystem {
modules = [./hosts/kardorf]; modules = [./hosts/kardorf];
specialArgs = { specialArgs = {
@@ -134,16 +134,16 @@
}; };
}; };
# Media server (RPi) # Media server (RPi)
"julian@pianonix" = lib.homeManagerConfiguration { # "julian@pianonix" = lib.homeManagerConfiguration {
modules = [ # modules = [
./homes/julian/pianonix.nix # ./homes/julian/pianonix.nix
./homes/julian/hm-standalone-config.nix # ./homes/julian/hm-standalone-config.nix
]; # ];
pkgs = pkgsFor.aarch64-linux; # pkgs = pkgsFor.aarch64-linux;
extraSpecialArgs = { # extraSpecialArgs = {
inherit inputs outputs; # inherit inputs outputs;
}; # };
}; # };
"julian@kardorf" = lib.homeManagerConfiguration { "julian@kardorf" = lib.homeManagerConfiguration {
modules = [ modules = [
./homes/julian/kardorf.nix ./homes/julian/kardorf.nix
@@ -164,19 +164,29 @@
inherit inputs outputs; inherit inputs outputs;
}; };
}; };
"julian@quickstart" = lib.homeManagerConfiguration {
modules = [
./homes/julian/quickstart.nix
./homes/julian/hm-standalone-config.nix
];
pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs;
};
};
}; };
# deploy-rs node configuration # deploy-rs node configuration
deploy.nodes = { deploy.nodes = {
pianonix = { # pianonix = {
hostname = "pianonix.local"; # hostname = "pianonix.local";
profiles.system = { # profiles.system = {
sshUser = "root"; # sshUser = "root";
user = "root"; # user = "root";
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.pianonix; # path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.pianonix;
confirmTimeout = 90; # default: 30s; raspberrypi takes a little longer restarting services # confirmTimeout = 90; # default: 30s; raspberrypi takes a little longer restarting services
}; # };
}; # };
builder = { builder = {
hostname = "builder.julian-mutter.de"; hostname = "builder.julian-mutter.de";

View File

@@ -11,6 +11,8 @@
./features/alacritty ./features/alacritty
./features/yazi ./features/yazi
./features/emacs ./features/emacs
./features/tmux
./features/qt-distrobox
./features/hyprland ./features/hyprland

View File

@@ -52,6 +52,14 @@ in {
shfmt shfmt
pyright pyright
clang-tools # c++ lsp etc clang-tools # c++ lsp etc
ccls # alternative c++ lsp
cmake
bear
cmake-language-server
# qt6.full # qt tools and libs including lsp
tinymist # typst lsp
ltex-ls # latex languagetool ltex-ls # latex languagetool
graphviz graphviz
@@ -59,6 +67,27 @@ in {
# neocmakelsp # cmake # neocmakelsp # cmake
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
frajul.typst-languagetool
ltex-ls-plus
(texlive.combine {
inherit
(texlive)
scheme-basic
# for rendering latex in inkscape
standalone
amsmath
preview
# needed for org mode preview
dvisvgm
dvipng # for preview and export as html
wrapfig
# amsmath
ulem
hyperref
capt-of
;
})
] ]
++ lib.optional config.is-nixos emacs; ++ lib.optional config.is-nixos emacs;

View File

@@ -27,6 +27,11 @@ with lib; {
enableFishIntegration = true; enableFishIntegration = true;
}; };
programs.zoxide = {
enable = true;
enableFishIntegration = true;
};
programs.fish = { programs.fish = {
enable = true; enable = true;
@@ -38,14 +43,14 @@ with lib; {
cd $argv cd $argv
''; '';
run = '' run = ''
nix run nixpkgs#"$argv[1]" -- $argv[2..-1] nix run --impure nixpkgs#"$argv[1]" -- $argv[2..-1]
''; '';
shell = '' shell = ''
set args set args
for arg in $argv for arg in $argv
set args $args nixpkgs#$arg set args $args nixpkgs#$arg
end end
nix shell $args nix shell --impure $args
''; '';
fish_user_key_bindings = '' fish_user_key_bindings = ''
bind ctrl-space 'zi; commandline -f repaint' bind ctrl-space 'zi; commandline -f repaint'

View File

@@ -1,7 +1,6 @@
{ {
lib, lib,
pkgs, pkgs,
config,
... ...
}: }:
with lib; { with lib; {
@@ -12,7 +11,7 @@ with lib; {
dejavu_fonts dejavu_fonts
noto-fonts noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-emoji noto-fonts-color-emoji
liberation_ttf liberation_ttf
fira-code fira-code
fira-code-symbols fira-code-symbols

View File

@@ -152,6 +152,37 @@ in {
# hyprlandPlugins.hyprbars # hyprlandPlugins.hyprbars
]; ];
submaps = {
"resize".settings = {
binde = [
", right, resizeactive, 20"
", left, resizeactive, -20 0"
", up, resizeactive, 0 -20"
", down, resizeactive, 0 20"
", l, resizeactive, 20"
", h, resizeactive, -20 0"
", k, resizeactive, 0 -20"
", j, resizeactive, 0 20"
];
bind = [
", q, submap, reset"
", escape, submap, reset"
", catchall, submap, reset" # make any other keypress cancel the submap
];
};
"open, reset".settings = {
bind = [
", e, exec, emacs"
", m, exec, open-messaging"
", b, exec, firefox"
", catchall, submap, reset" # make any other keypress cancel the submap
];
};
};
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
@@ -228,6 +259,10 @@ in {
vfr = true; # power saving vfr = true; # power saving
}; };
cursor = {
no_hardware_cursors = 1; # disable hardware cursors to fix tearing on kardorf
};
render = { render = {
# we do, in fact, want direct scanout # we do, in fact, want direct scanout
direct_scanout = true; direct_scanout = true;
@@ -244,7 +279,10 @@ in {
windowrulev2 = [ windowrulev2 = [
"suppressevent maximize, class:.*" "suppressevent maximize, class:.*"
"workspace 1, class:firefox" "workspace 1, class:firefox"
"workspace 8, class:Zotero"
"workspace 9, class:nheko" "workspace 9, class:nheko"
"workspace 9, class:Element"
"workspace 9, class:discord"
"workspace 9, class:org.telegram.desktop" "workspace 9, class:org.telegram.desktop"
"workspace 10, class:thunderbird" "workspace 10, class:thunderbird"
"float, class:qalculate-gtk" "float, class:qalculate-gtk"
@@ -274,12 +312,18 @@ in {
bind = bind =
[ [
# compositor commands # compositor commands
"$mod, Space, focuswindow, floating" #
"$mod SHIFT, Space, togglefloating," #
"$mod, R, submap, resize"
"$mod, O, submap, open"
#
"$mod, SPACE, focuswindow, floating"
"$mod SHIFT, SPACE, togglefloating,"
"$mod, F, fullscreen," "$mod, F, fullscreen,"
"$mod, X, killactive," "$mod, X, killactive,"
"$mod, O, togglesplit," # dwindle "$mod, -, togglesplit," # dwindle
# opening applications # opening applications
"$mod, D, exec, wofi --show drun,run" "$mod, D, exec, wofi --show drun,run"

View File

@@ -1,10 +1,9 @@
{ {
lib,
pkgs, pkgs,
inputs, inputs,
... ...
}: { }: {
imports = [inputs.nixvim.homeManagerModules.nixvim]; imports = [inputs.nixvim.homeModules.nixvim];
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
@@ -78,6 +77,7 @@
neogit.enable = true; # like magit neogit.enable = true; # like magit
trouble.enable = true; trouble.enable = true;
web-devicons.enable = true; web-devicons.enable = true;
orgmode.enable = true; # org-mode support
# Shows file trees # Shows file trees
oil = { oil = {
@@ -90,7 +90,7 @@
# Code formatting # Code formatting
conform-nvim = { conform-nvim = {
enable = true; enable = true;
settings.formatters_by_ft = with pkgs; { settings.formatters_by_ft = {
lua = ["stylua"]; lua = ["stylua"];
python = ["black"]; python = ["black"];
nix = ["nixfmt"]; nix = ["nixfmt"];

View File

@@ -0,0 +1,22 @@
{
programs.distrobox = {
enable = true;
containers."qt-distrobox" = {
image = "debian:12.2";
exported_apps = "qtcreator";
enableSystemdUnit = false; # fails in creating and does not recreate. Do distrobox-assemble create --replace --file ~/.config/distrobox/containers.ini instead
additional_packages = [
"qtcreator"
"qt6-base-dev"
"qt6-wayland"
"qt6-tools-dev-tools"
"qt6-tools-dev"
"qt6-serialbus-dev"
"qt6-websockets-dev"
"libgl1-mesa-dev"
"build-essential"
"cmake"
];
};
};
}

View File

@@ -1,7 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [ home.packages = with pkgs; [
bat bat
du-dust # Like du tree but better dust # Like du tree but better
fd # better find fd # better find
fdupes # find and delete duplicate files fdupes # find and delete duplicate files
ffmpeg ffmpeg
@@ -24,7 +24,7 @@
p7zip # unzip 7zip archives p7zip # unzip 7zip archives
parted parted
pciutils # lspci pciutils # lspci
poppler_utils # Pdf utils including pdfimages poppler-utils # Pdf utils including pdfimages
libqalculate # Nice tui calculator (qalc) libqalculate # Nice tui calculator (qalc)
ripgrep # better grep ripgrep # better grep
rnr # renaming tool rnr # renaming tool

View File

@@ -27,12 +27,12 @@
# element-desktop # element-desktop
# rocketchat-desktop # rocketchat-desktop
thunderbird thunderbird
tdesktop # telegram telegram-desktop # telegram
# schildichat-desktop # not updated regularly # schildichat-desktop # not updated regularly
nheko nheko
element-desktop
evince # Simple pdf reader, good for focusing on document content evince # Simple pdf reader, good for focusing on document content
firefox firefox
vivaldi
# geogebra # geogebra
cheese cheese
handbrake handbrake
@@ -51,8 +51,7 @@
# rpi-imager # make isos # rpi-imager # make isos
# rustdesk # rustdesk
tor-browser tor-browser
unstable.rusty-path-of-building # Path of Building for poe1 and poe2 rusty-path-of-building # Path of Building for poe1 and poe2
path-of-building # Path of Building for poe1 and poe2
# frajul.pob-dev-version # Path of Building # frajul.pob-dev-version # Path of Building
vlc vlc
wineWowPackages.stable # 32-bit and 64-bit wine wineWowPackages.stable # 32-bit and 64-bit wine

View File

@@ -1,4 +1,9 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.opencode = {
enable = true;
package = pkgs.unstable.opencode;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
watchexec # Run command when any file in current dir changes watchexec # Run command when any file in current dir changes
android-tools # adb android-tools # adb
@@ -9,7 +14,7 @@
clippy clippy
cntr # nix debugger cntr # nix debugger
conda conda
micromamba # a better, faster conda # micromamba # a better, faster conda
devcontainer # development container devcontainer # development container
devenv # devbox alternative devenv # devbox alternative
dbeaver-bin dbeaver-bin
@@ -21,20 +26,21 @@
unstable.zed-editor unstable.zed-editor
jdk jdk
julia-bin julia-bin
(texlive.combine { # (texlive.combine {
# for rendering latex in inkscape # # for rendering latex in inkscape
inherit # inherit
(texlive) # (texlive)
scheme-medium # scheme-medium
standalone # standalone
amsmath # amsmath
preview # preview
# needed for org mode export # # needed for org mode export
wrapfig # wrapfig
capt-of # capt-of
biblatex # biblatex
; # ;
}) # })
vagrant
matlab # Using nix-matlab overlay defined in flake matlab # Using nix-matlab overlay defined in flake
maven maven
nodejs nodejs

View File

@@ -0,0 +1,10 @@
{
programs.tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
customPaneNavigationAndResize = true; # use hjkl
mouse = true;
prefix = "C-Space"; # use instead of C-b
};
}

View File

@@ -3,14 +3,11 @@
inputs, inputs,
... ...
}: { }: {
programs.zoxide.enable = true;
programs.zoxide.enableFishIntegration = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
exiftool exiftool
unar # extract archives unar # extract archives
xdragon # dragndrop dragon-drop # dragndrop
poppler_utils # pdf preview poppler-utils # pdf preview
fd fd
ripgrep ripgrep
fzf fzf

View File

@@ -24,6 +24,11 @@
}; };
}; };
# To allow unfree with 'nix run'
xdg.configFile."nixpkgs/config.nix".text = ''
{ allowUnfree = true; }
'';
colorscheme.name = "catppuccin-mocha"; colorscheme.name = "catppuccin-mocha";
# systemd.user.startServices = "sd-switch"; # TODO: what is this # systemd.user.startServices = "sd-switch"; # TODO: what is this

View File

@@ -1,6 +1,5 @@
# Only apply this to home-manager standalone # Only apply this to home-manager standalone
{ outputs, ... }: {outputs, ...}: {
{
# Apply overlays # Apply overlays
nixpkgs = { nixpkgs = {
overlays = builtins.attrValues outputs.overlays; overlays = builtins.attrValues outputs.overlays;
@@ -20,13 +19,13 @@
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://cache.nixos.org/" "https://cache.nixos.org/"
"https://hyprland.cachix.org" "https://hyprland.cachix.org"
"http://binarycache.julian-mutter.de" "https://devenv.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"binarycache.julian-mutter.de:oJ67uRFwRhNPKL58CHzy3QQLv38Kx7OA1K+6xlEPu7E=" "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
]; ];
trusted-users = [ trusted-users = [

View File

@@ -8,11 +8,14 @@
./features/neovim ./features/neovim
./features/ghostty ./features/ghostty
./features/wezterm ./features/wezterm
./features/alacritty
./features/yazi ./features/yazi
./features/emacs ./features/emacs
# ./features/hyprland ./features/tmux
./features/i3 ./features/qt-distrobox
./features/hyprland
# ./features/i3
./features/suites/cli ./features/suites/cli
./features/suites/desktop ./features/suites/desktop
@@ -21,7 +24,7 @@
hostName = "kardorf"; hostName = "kardorf";
is-nixos = true; is-nixos = true;
terminal = "ghostty"; terminal = "alacritty";
# --------- --------- # --------- ---------
# | DVI-D-1 | | DVI-D-2 | # | DVI-D-1 | | DVI-D-2 |

View File

@@ -0,0 +1,32 @@
# Quick configuration for setting up basic things on a standalone home-manager device
# If you want to adapt it to a specific device, copy this file with the correct hostname
{pkgs, ...}: {
imports = [
./global
./features/fish
./features/direnv
./features/neovim
./features/yazi
./features/emacs
./features/nix-helper
./features/tmux
];
is-nixos = false;
home.sessionPath = ["/snap/bin"];
# Essential packages
home.packages = with pkgs; [
bat
dust
fd
ripgrep
fzf
lazygit
mc
tree
wget
];
}

View File

@@ -13,6 +13,7 @@
../features/yazi ../features/yazi
../features/emacs ../features/emacs
../features/nix-helper ../features/nix-helper
../features/qt-distrobox
]; ];
hostName = "aspi"; hostName = "aspi";

View File

@@ -5,7 +5,7 @@ with pkgs; [
dejavu_fonts dejavu_fonts
noto-fonts noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-emoji noto-fonts-color-emoji
liberation_ttf liberation_ttf
fira-code fira-code
fira-code-symbols fira-code-symbols

View File

@@ -31,7 +31,7 @@ with pkgs; [
ffmpeg ffmpeg
julia-bin julia-bin
poppler_utils # Pdf utils including pdfimages poppler-utils # Pdf utils including pdfimages
sage sage
pkg-config # Often needed to build something pkg-config # Often needed to build something

View File

@@ -20,7 +20,7 @@
../common/optional/virtualbox.nix ../common/optional/virtualbox.nix
../common/optional/podman.nix ../common/optional/podman.nix
# ../common/optional/wireguard.nix ../common/optional/wireguard.nix
../common/optional/flatpak.nix ../common/optional/flatpak.nix
../common/optional/avahi.nix ../common/optional/avahi.nix
@@ -42,6 +42,7 @@
}; };
}; };
programs.hyprland.enable = true;
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
@@ -50,8 +51,8 @@
programs.steam.enable = true; programs.steam.enable = true;
# TODO: not working # TODO: not working
services.logind.lidSwitch = "lock"; # services.logind.lidSwitch = "lock";
services.logind.lidSwitchDocked = "lock"; # services.logind.lidSwitchDocked = "lock";
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;

View File

@@ -101,10 +101,17 @@
}; };
# Ollama used by open-webui as llm backend # Ollama used by open-webui as llm backend
# services.ollama = { services.ollama = {
# enable = true; enable = true;
# # acceleration = "rocm"; # acceleration = "rocm";
# }; openFirewall = true;
};
services.nextjs-ollama-llm-ui = {
enable = true;
hostname = "192.168.3.118";
port = 3001;
};
# services.open-webui = { # services.open-webui = {
# enable = true; # enable = true;
# port = 8080; # port = 8080;
@@ -114,6 +121,7 @@
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
80 80
3001 # ollama-ui
]; ];
services.openssh = { services.openssh = {

View File

@@ -30,19 +30,17 @@
networkmanager-openconnect networkmanager-openconnect
]; ];
}; };
services.resolved.enable = true; services.resolved.enable = false;
# MDNS Taken by avahi # MDNS Taken by avahi
services.resolved.extraConfig = '' # networking.networkmanager.dns = "none";
MulticastDNS=false
'';
networking.nameservers = lib.mkDefault [ networking.nameservers = lib.mkDefault [
"1.1.1.1" "1.1.1.1"
"8.8.8.8" "8.8.8.8"
]; ];
# HM # HM module
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true; # hm module uses the pkgs of the nixos config
home-manager.backupFileExtension = "hm-backup"; # backup conflicting files. So hm activation never fails
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit inputs outputs; inherit inputs outputs;
}; };

View File

@@ -18,7 +18,9 @@
}; };
}; };
nix.settings.auto-optimise-store = lib.mkDefault true; # optimize at every build, slows down builds
# better to do optimise.automatic for regular optimising
# nix.settings.auto-optimise-store = lib.mkDefault true;
nix.settings.experimental-features = [ nix.settings.experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
@@ -29,8 +31,11 @@
nix.gc = { nix.gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
# Keep the last 3 generations options = "--delete-older-than 30d";
options = "--delete-older-than +3"; };
nix.optimise = {
automatic = true;
dates = ["weekly"]; # Optional; allows customizing optimisation schedule
}; };
programs.nix-ld.enable = true; programs.nix-ld.enable = true;

View File

@@ -1,26 +1,9 @@
{ {config, ...}: let
pkgs,
lib,
config,
...
}: let
homeCfgs = config.home-manager.users; homeCfgs = config.home-manager.users;
homeSharePaths = lib.mapAttrsToList (_: v: "${v.home.path}/share") homeCfgs;
vars = ''XDG_DATA_DIRS="$XDG_DATA_DIRS:${lib.concatStringsSep ":" homeSharePaths}" GTK_USE_PORTAL=0'';
julianCfg = homeCfgs.julian; julianCfg = homeCfgs.julian;
sway-kiosk = command: "${lib.getExe pkgs.sway} --unsupported-gpu --config ${pkgs.writeText "kiosk.config" ''
output * bg #000000 solid_color
xwayland disable
input "type:touchpad" {
tap enabled
}
exec '${vars} ${command}; ${pkgs.sway}/bin/swaymsg exit'
''}";
in { in {
users.extraUsers.greeter = { users.extraUsers.greeter = {
# For caching and such # For caching
home = "/tmp/greeter-home"; home = "/tmp/greeter-home";
createHome = true; createHome = true;
}; };
@@ -33,13 +16,22 @@ in {
cursorTheme = { cursorTheme = {
inherit (julianCfg.gtk.cursorTheme) name package; inherit (julianCfg.gtk.cursorTheme) name package;
}; };
cageArgs = [
"-s"
"-m"
"last"
]; # multimonitor use last monitor
# settings.background = { # settings.background = {
# path = julianCfg.wallpaper; # path = julianCfg.wallpaper;
# fit = "Cover"; # fit = "Cover";
# }; # TODO: fix # }; # TODO: fix
};
services.greetd = { # TODO: setting keyboard language does not work
enable = true; # settings = {
settings.default_session.command = sway-kiosk (lib.getExe config.programs.regreet.package); # env = {
# XKB_DEFAULT_LAYOUT = "de";
# # XKB_DEFAULT_VARIANT = "altgr-intl";
# };
# };
}; };
} }

View File

@@ -1,7 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
shared-mime-info # extended mimetype support shared-mime-info # extended mimetype support
lxde.lxmenu-data # open with "Installed Applications" lxmenu-data # open with "Installed Applications"
pcmanfm pcmanfm
]; ];

View File

@@ -55,7 +55,7 @@ in {
# element-desktop # element-desktop
# rocketchat-desktop # rocketchat-desktop
thunderbird thunderbird
tdesktop # telegram telegram-desktop # telegram
# schildichat-desktop # not updated regularly # schildichat-desktop # not updated regularly
nheko nheko
evince # Simple pdf reader, good for focusing on document content evince # Simple pdf reader, good for focusing on document content

View File

@@ -7,21 +7,22 @@
../common/users/wolfi ../common/users/wolfi
../common/optional/binarycaches.nix ../common/optional/binarycaches.nix
../common/optional/xserver.nix # ../common/optional/xserver.nix
../common/optional/remote-builder.nix ../common/optional/remote-builder.nix
../common/optional/boot-efi.nix ../common/optional/boot-efi.nix
# ../common/optional/greetd.nix ../common/optional/greetd.nix
../common/optional/gdm.nix
../common/optional/i3.nix
../common/optional/openssh.nix
../common/optional/authentication.nix ../common/optional/authentication.nix
../common/optional/pcmanfm.nix ../common/optional/pcmanfm.nix
../common/optional/pipewire.nix ../common/optional/pipewire.nix
../common/optional/virtualbox.nix
# ../common/optional/gdm.nix
# ../common/optional/i3.nix
../common/optional/openssh.nix
../common/optional/podman.nix ../common/optional/podman.nix
../common/optional/flatpak.nix ../common/optional/flatpak.nix
]; ];
@@ -32,8 +33,12 @@
# Not using the drivers leads to way better results # Not using the drivers leads to way better results
# services.xserver.videoDrivers = [ "nvidia" ]; # services.xserver.videoDrivers = [ "nvidia" ];
programs.kdeconnect.enable = true; networking.networkmanager.insertNameservers = ["192.168.3.252"];
programs.kdeconnect.enable = true;
programs.steam.enable = true;
programs.hyprland.enable = true;
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
# Enable CUPS to print documents. # Enable CUPS to print documents.

View File

@@ -26,6 +26,26 @@
../common/optional/avahi.nix ../common/optional/avahi.nix
]; ];
environment.systemPackages = [
(pkgs.python3.withPackages (p:
with p; [
numpy
pillow
flask
rpi-gpio
webcolors
psutil
mido
rtmidi-python
spidev
waitress
websockets
werkzeug
pkgs.frajul.rpi-ws281x-python
]))
];
# disko.devices.disk.main.device = "/dev/mmcblk1"; # disko.devices.disk.main.device = "/dev/mmcblk1";
# enabled by fish, disabling speeds up builds # enabled by fish, disabling speeds up builds
@@ -169,7 +189,7 @@
}; };
}; };
networking.firewall.enable = true; networking.firewall.enable = false;
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
5900 # for vnc 5900 # for vnc
]; ];
@@ -201,7 +221,7 @@
hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = true; hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = true;
hardware.deviceTree = { hardware.deviceTree = {
enable = true; enable = true;
filter = lib.mkForce "*-rpi-*.dtb"; filter = lib.mkForce "*-rpi-4*.dtb";
overlays = [ overlays = [
{ {
name = "spi"; name = "spi";
@@ -234,4 +254,23 @@
## My own Piano LED Visualizer ## My own Piano LED Visualizer
services.piano-led-visualizer.enable = true; services.piano-led-visualizer.enable = true;
## Crude fix for avahi
systemd.timers.avahiRestart = {
description = "Restart avahi-daemon every 5 minutes";
wantedBy = ["timers.target"];
timerConfig = {
OnBootSec = "5min";
OnUnitActiveSec = "5min";
Unit = "avahiRestart.service";
};
};
systemd.services.avahiRestart = {
description = "Restart avahi-daemon service";
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.systemd}/bin/systemctl restart avahi-daemon.service";
};
};
} }

View File

@@ -15,6 +15,7 @@
boot.kernelModules = []; boot.kernelModules = [];
boot.extraModulePackages = []; boot.extraModulePackages = [];
boot.kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; boot.kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
boot.blacklistedKernelModules = ["snd_bcm2835"]; # Disables sound, required for ws281x to work
# boot.supportedFilesystems = lib.mkForce [ # boot.supportedFilesystems = lib.mkForce [
# # remove zfs, since its incompatible with latest kernel # # remove zfs, since its incompatible with latest kernel
# "vfat" # "vfat"

View File

@@ -27,6 +27,10 @@ in {
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
security.sudo.extraConfig = ''
root ALL=(julian) NOPASSWD: ${pkgs.git}/bin/git -C "${cfg.flakePath}" commit -m *
'';
# Ensure the flag directory exists # Ensure the flag directory exists
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d /var/lib/frajul-auto-upgrade 0755 root root -" "d /var/lib/frajul-auto-upgrade 0755 root root -"
@@ -67,11 +71,16 @@ in {
echo $$ > "$LOCK_FILE" echo $$ > "$LOCK_FILE"
trap 'rm -f "$LOCK_FILE"' EXIT trap 'rm -f "$LOCK_FILE"' EXIT
if /run/current-system/sw/bin/nix flake update --flake "${cfg.flakePath}" && /run/current-system/sw/bin/nixos-rebuild switch --flake "${cfg.flakePath}"; then # Back up flake.lock
cp -f "${cfg.flakePath}/flake.lock" /var/lib/frajul-auto-upgrade/flake.lock.bak
# Try updating
if /run/current-system/sw/bin/nix flake update --flake "${cfg.flakePath}" && /run/current-system/sw/bin/nixos-rebuild switch --flake "${cfg.flakePath}" && ${pkgs.sudo}/bin/sudo -u julian git -C "${cfg.flakePath}" commit -m "Auto-update flake.lock" -- flake.lock; then
echo "success" > "$LAST_STATUS_FILE" echo "success" > "$LAST_STATUS_FILE"
else else
echo "failure" > "$LAST_STATUS_FILE" echo "failure" > "$LAST_STATUS_FILE"
git -C "${cfg.flakePath}" restore flake.lock # Restore flake.lock
cp -f /var/lib/frajul-auto-upgrade/flake.lock.bak "${cfg.flakePath}/flake.lock"
fi fi
# Write full timestamp # Write full timestamp

View File

@@ -26,6 +26,9 @@ in {
users.users.${cfg.user} = { users.users.${cfg.user} = {
isSystemUser = true; isSystemUser = true;
group = cfg.group; group = cfg.group;
createHome = true;
home = "/home/${cfg.user}";
extraGroups = ["wheel" "gpio"];
}; };
users.groups.${cfg.group} = {}; users.groups.${cfg.group} = {};
@@ -36,11 +39,12 @@ in {
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
serviceConfig = { serviceConfig = {
WorkingDirectory = "/home/${cfg.user}/Piano-LED-Visualizer";
ExecStart = "${pkgs.frajul.piano-led-visualizer}/bin/piano-led-visualizer"; ExecStart = "${pkgs.frajul.piano-led-visualizer}/bin/piano-led-visualizer";
Restart = "always"; Restart = "always";
Type = "simple"; Type = "simple";
User = cfg.user; # User = cfg.user;
Group = cfg.group; # Group = cfg.group;
}; };
}; };
}; };

View File

@@ -2,19 +2,19 @@
# For every flake input, aliases 'pkgs.inputs.${flake}' to # For every flake input, aliases 'pkgs.inputs.${flake}' to
# 'inputs.${flake}.packages.${pkgs.system}' or # 'inputs.${flake}.packages.${pkgs.system}' or
# 'inputs.${flake}.legacyPackages.${pkgs.system}' # 'inputs.${flake}.legacyPackages.${pkgs.system}'
flake-inputs = final: _: { # flake-inputs = final: _: {
inputs = # inputs =
builtins.mapAttrs ( # builtins.mapAttrs (
_: flake: let # _: flake: let
legacyPackages = (flake.legacyPackages or {}).${final.system} or {}; # legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
packages = (flake.packages or {}).${final.system} or {}; # packages = (flake.packages or {}).${final.system} or {};
in # in
if legacyPackages != {} # if legacyPackages != {}
then legacyPackages # then legacyPackages
else packages # else packages
) # )
inputs; # inputs;
}; # };
input-flake-packages = final: prev: { input-flake-packages = final: prev: {
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default; # TODO: change sheet-organizer package output sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default; # TODO: change sheet-organizer package output
@@ -26,11 +26,11 @@
nixpkgs-stable-unstable = final: prev: { nixpkgs-stable-unstable = final: prev: {
unstable = import inputs.nixpkgs-unstable { unstable = import inputs.nixpkgs-unstable {
system = prev.system; system = prev.stdenv.hostPlatform.system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
stable = import inputs.nixpkgs { stable = import inputs.nixpkgs {
system = prev.system; system = prev.stdenv.hostPlatform.system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
}; };

View File

@@ -13,6 +13,9 @@
pob2 = pkgs.callPackage ./pob2 {}; pob2 = pkgs.callPackage ./pob2 {};
wl-ocr = pkgs.callPackage ./wl-ocr {}; wl-ocr = pkgs.callPackage ./wl-ocr {};
rtklib = pkgs.qt6Packages.callPackage ./rtklib {}; rtklib = pkgs.qt6Packages.callPackage ./rtklib {};
typst-languagetool = pkgs.callPackage ./typst-languagetool {};
pob2-frajul = pkgs.callPackage ./pob2-frajul {}; pob2-frajul = pkgs.callPackage ./pob2-frajul {};
piano-led-visualizer = pkgs.callPackage ./piano-led-visualizer {};
# rpi-ws281x-python = pkgs.callPackage ./rpi-ws281x-python {};
# piano-led-visualizer = pkgs.callPackage ./piano-led-visualizer {};
} }

View File

@@ -1,6 +1,6 @@
{ {
writeShellApplication, writeShellApplication,
nheko, element-desktop,
telegram-desktop, telegram-desktop,
thunderbird, thunderbird,
discord, # TODO: discord not available for aarch64, this leads to flake evaluation for this arch fail. discord, # TODO: discord not available for aarch64, this leads to flake evaluation for this arch fail.
@@ -9,7 +9,7 @@ writeShellApplication {
name = "open-messaging"; name = "open-messaging";
runtimeInputs = [ runtimeInputs = [
nheko element-desktop
telegram-desktop telegram-desktop
thunderbird thunderbird
discord discord
@@ -18,7 +18,7 @@ writeShellApplication {
text = '' text = ''
thunderbird & thunderbird &
sleep 0.1 sleep 0.1
nheko & element-desktop &
sleep 0.1 sleep 0.1
Telegram & Telegram &
sleep 0.1 sleep 0.1

View File

@@ -1,10 +1,12 @@
{ {
lib, lib,
python3, python3,
callPackage,
fetchFromGitHub, fetchFromGitHub,
... ...
}: let }: let
pythonPackages = python3.pkgs; pythonPackages = python3.pkgs;
rpi-ws281x-python = callPackage ../rpi-ws281x-python {inherit python3;};
in in
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
pname = "piano-led-visualizer"; pname = "piano-led-visualizer";
@@ -36,7 +38,8 @@ in
waitress waitress
websockets websockets
werkzeug werkzeug
# rpi_ws281x
rpi-ws281x-python
]; ];
format = "setuptools"; format = "setuptools";

View File

@@ -10,15 +10,12 @@ python3.pkgs.buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rpi-ws281x"; owner = "rpi-ws281x";
repo = "rpi-ws281x-pytho"; repo = "rpi-ws281x-python";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-tnjvFDBa+sNX6dK6/I1/rRt62k15kTP+9J8eyFRFs/I="; sha256 = "sha256-CVPibDs1QLeXhtoEBw3JplKIIUpzahjgJKy8GVy99Wk=";
fetchSubmodules = true; fetchSubmodules = true;
deepClone = true;
}; };
# sourceRoot = "${src}/library";
format = "setuptools"; format = "setuptools";
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [
@@ -30,9 +27,6 @@ python3.pkgs.buildPythonPackage rec {
sourceRoot="$sourceRoot/library" sourceRoot="$sourceRoot/library"
''; '';
# Some of the bindings compile C code, so you may need these
nativeBuildInputs = [python3.pkgs.setuptools pkgs.scons];
meta = with lib; { meta = with lib; {
description = "Python bindings for the rpi_ws281x C library"; description = "Python bindings for the rpi_ws281x C library";
homepage = "https://github.com/rpi-ws281x/rpi-ws281x-python"; homepage = "https://github.com/rpi-ws281x/rpi-ws281x-python";

View File

@@ -0,0 +1,27 @@
{
rustPlatform,
fetchFromGitHub,
openssl,
pkg-config,
...
}:
rustPlatform.buildRustPackage {
pname = "typst-languagetool";
version = "0.1.0";
src = fetchFromGitHub {
owner = "antonWetzel";
repo = "typst-languagetool";
rev = "b667a7ed94c8d671b23dd4ec018c58039277f0d6";
sha256 = "sha256-sxE8mQW/bH58oZzamjxTQIcSjQh4FaYvrYfNJrnm8Io=";
};
cargoHash = "sha256-80Dfpy2MB7ty841azRwBtA7hhO/yUXh2N4cvtrgTd2g=";
buildFeatures = ["server"];
cargoBuildFlags = "-p cli";
# optional dependencies
buildInputs = [openssl];
nativeBuildInputs = [pkg-config];
}