Compare commits

...

5 Commits

Author SHA1 Message Date
cd34401a47 update system 2026-03-31 10:50:42 +02:00
1ba0b48cf3 update system 2026-03-27 14:52:11 +01:00
c26512c3db update system 2026-03-23 11:54:25 +01:00
36e64dcc4c feat: update system 2026-03-02 20:21:34 +01:00
0503faaf3b update system 2026-02-16 14:57:54 +01:00
18 changed files with 221 additions and 209 deletions

131
flake.lock generated
View File

@@ -16,6 +16,27 @@
"type": "github"
}
},
"elephant": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
},
"locked": {
"lastModified": 1773079031,
"narHash": "sha256-RvCzINnVISBT3d0F1DoIcQFbQsbRJISW9qZeKTzmNaA=",
"owner": "abenz1267",
"repo": "elephant",
"rev": "53afe39cef252010f7c55bd33c5bae6dd50dcf0c",
"type": "github"
},
"original": {
"owner": "abenz1267",
"repo": "elephant",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@@ -24,11 +45,11 @@
]
},
"locked": {
"lastModified": 1765835352,
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
"lastModified": 1769996383,
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
"type": "github"
},
"original": {
@@ -44,11 +65,11 @@
]
},
"locked": {
"lastModified": 1768984719,
"narHash": "sha256-O6nXCW9FN39qw204e5Nl3qgaxKFcSvdpx0bULqfwyTA=",
"lastModified": 1774210133,
"narHash": "sha256-yeiWCY9aAUUJ3ebMVjs0UZXRnT5x90MCtpbpOWiXrvM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d6e3935ec6e43c8f54cd0132276c82d951e1453e",
"rev": "c6fe2944ad9f2444b2d767c4a5edee7c166e8a95",
"type": "github"
},
"original": {
@@ -62,7 +83,7 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
"systems": "systems_2"
},
"locked": {
"lastModified": 1731508795,
@@ -91,11 +112,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1768974509,
"narHash": "sha256-V+Uv2EL6MMdYGF4Zg0sWHeRLSgqzC4to01taYDItCNY=",
"lastModified": 1774253924,
"narHash": "sha256-5Zi+RYoRvax1gATaNC80MYR+6uBJ3F+uUZ2KL3HyTWg=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "2f38ab793de773496d2184aa3aa377bc8c99557b",
"rev": "36f3b7b93efde38c4c40daeaee80a62afb550812",
"type": "github"
},
"original": {
@@ -124,11 +145,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1768678265,
"narHash": "sha256-Ub8eed4DsfIDWyg30xEe+8bSxL/z5Af/gCjmvJ0V/Hs=",
"lastModified": 1773130184,
"narHash": "sha256-3bwx4WqCB06yfQIGB+OgIckOkEDyKxiTD5pOo4Xz2rI=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "d7184a04b904e07113f4623610775ae78d32394c",
"rev": "b07bde3ee82dd73115e6b949e4f3f63695da35ea",
"type": "github"
},
"original": {
@@ -155,11 +176,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1768886240,
"narHash": "sha256-C2TjvwYZ2VDxYWeqvvJ5XPPp6U7H66zeJlRaErJKoEM=",
"lastModified": 1774106199,
"narHash": "sha256-US5Tda2sKmjrg2lNHQL3jRQ6p96cgfWh3J1QBliQ8Ws=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "80e4adbcf8992d3fd27ad4964fbb84907f9478b0",
"rev": "6c9a78c09ff4d6c21d0319114873508a6ec01655",
"type": "github"
},
"original": {
@@ -171,11 +192,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1768773494,
"narHash": "sha256-XsM7GP3jHlephymxhDE+/TKKO1Q16phz/vQiLBGhpF4=",
"lastModified": 1773964973,
"narHash": "sha256-NV/J+tTER0P5iJhUDL/8HO5MDjDceLQPRUYgdmy5wXw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "77ef7a29d276c6d8303aece3444d61118ef71ac2",
"rev": "812b3986fd1568f7a858f97fcf425ad996ba7d25",
"type": "github"
},
"original": {
@@ -191,14 +212,14 @@
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_2"
"systems": "systems_3"
},
"locked": {
"lastModified": 1768910181,
"narHash": "sha256-YRU0IHMzXluZxr0JDfq9jtblb4DV7MIB5wj2jYMFKQc=",
"lastModified": 1772402258,
"narHash": "sha256-3DmCFOdmbkFML1/G9gj8Wb+rCCZFPOQtNoMCpqOF8SA=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "5b138edcb2f1c3ed4b29eca3658f04f0639b98b3",
"rev": "21ae25e13b01d3b4cdc750b5f9e7bad68b150c10",
"type": "github"
},
"original": {
@@ -209,13 +230,15 @@
},
"root": {
"inputs": {
"elephant": "elephant",
"home-manager": "home-manager",
"matugen": "matugen",
"niri": "niri",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim",
"tidalcycles": "tidalcycles"
"tidalcycles": "tidalcycles",
"walker": "walker"
}
},
"superdirt-src": {
@@ -250,6 +273,21 @@
}
},
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -264,6 +302,21 @@
"type": "github"
}
},
"systems_4": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"tidal-src": {
"flake": false,
"locked": {
@@ -339,6 +392,30 @@
"type": "github"
}
},
"walker": {
"inputs": {
"elephant": [
"elephant"
],
"nixpkgs": [
"nixpkgs"
],
"systems": "systems_4"
},
"locked": {
"lastModified": 1773675699,
"narHash": "sha256-GrormZ2KxchtCLuO90+5fioEQmlUCKBIil0Mzr9w0Iw=",
"owner": "abenz1267",
"repo": "walker",
"rev": "d2702235710da3d7daf55c912ca7534261cf20f5",
"type": "github"
},
"original": {
"owner": "abenz1267",
"repo": "walker",
"type": "github"
}
},
"xwayland-satellite-stable": {
"flake": false,
"locked": {
@@ -359,11 +436,11 @@
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
"lastModified": 1768765571,
"narHash": "sha256-C1JbyJ3ftogmN3vmLNfyPtnJw2wY64TiUTIhFtk1Leg=",
"lastModified": 1773622265,
"narHash": "sha256-wToKwH7IgWdGLMSIWksEDs4eumR6UbbsuPQ42r0oTXQ=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "ed1cef792b4def3321ff9ab5479df09609f17a69",
"rev": "a879e5e0896a326adc79c474bf457b8b99011027",
"type": "github"
},
"original": {

View File

@@ -22,6 +22,17 @@
url = "github:mitchmindtree/tidalcycles.nix/?ref=0db0918e7a3d3c30ed7a6e81dc9d4e3832870ac4";
inputs.nixpkgs.follows = "nixpkgs";
};
elephant = {
url = "github:abenz1267/elephant";
inputs.nixpkgs.follows = "nixpkgs";
};
walker = {
url = "github:abenz1267/walker";
inputs = {
elephant.follows = "elephant";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs =
@@ -33,6 +44,7 @@
nix-flatpak,
niri,
tidalcycles,
walker,
...
}@inputs:
let
@@ -68,7 +80,7 @@
wireshark = prev.wireshark.overrideAttrs (
finalAttrs: prevAttrs: {
postInstall = prevAttrs.postInstall + ''
ln -s ${final.usb-sniffer}/bin/usb_sniffer $out/lib/wireshark/extcap/usb_sniffer
ln -s ${final.usb-sniffer}/bin/usb_sniffer $out/libexec/wireshark/extcap/usb_sniffer
'';
}
);
@@ -144,6 +156,7 @@
nix-flatpak.homeManagerModules.nix-flatpak
nixvim.homeModules.nixvim
./modules/home-manager/modules/nixvim
walker.homeManagerModules.default
];
users.${username} = {
nix.gc = {

View File

@@ -23,6 +23,7 @@
usecases = {
gaming.enable = true;
localai.enable = true;
"3d-printing".enable = true;
development = {
enable = true;
@@ -50,23 +51,7 @@
scrolling = true;
};
locale.preset.theaninova.enable = true;
networking.hosts = {
"127.0.0.1:57461" = [ "ai.local" ];
};
services = {
ollama.enable = false;
open-webui = {
enable = false;
port = 57461;
environment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
WEBUI_AUTH = "False";
};
};
xserver.xkb.variant = "altgr-intl";
xserver.xkb.layout = "us";
@@ -135,7 +120,7 @@
programs = {
zsh.enable = true;
wireshark = {
enable = false;
enable = true;
package = pkgs.wireshark;
usbmon.enable = true;
};

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, ... }:
{
theme.md3-evo = {
enable = true;
@@ -8,35 +8,12 @@
lon = 13.40;
};
};
xdg.userDirs = {
enable = true;
setSessionVariables = true;
extraConfig.PROJECTS = "${config.home.homeDirectory}/Projects";
};
programs.zoxide.enable = true;
home.packages = with pkgs; [
hyperhdr
/*
(hyperion-ng.overrideAttrs (
final: prev: rec {
version = "2.1.1";
src = fetchFromGitHub {
owner = "hyperion-project";
repo = prev.pname;
rev = version;
hash = "sha256-lKLXgOrXp8DLmlpQe/33A30l4K9VX8P0q2LUA+lLYws=";
# needed for `dependencies/external/`:
# * rpi_ws281x` - not possible to use as a "system" lib
# * qmdnsengine - not in nixpkgs yet
fetchSubmodules = true;
};
buildInputs = prev.buildInputs ++ [
pkgs.libsForQt5.qtwebsockets
pkgs.libftdi1
];
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.git ];
cmakeFlags = prev.cmakeFlags ++ [
"-DUSE_SYSTEM_LIBFTDI_LIBS=ON"
];
}
))
*/
];
wayland.windowManager.hyprland.settings.device =
let
targetDPI = 1200;

View File

@@ -110,7 +110,7 @@ in
ghex
gnome-disk-utility
# fixes
xorg.xrandr
xrandr
];
gtk = {

View File

@@ -3,6 +3,7 @@
programs.git = {
enable = true;
signing = {
format = "openpgp";
key = "6C9E EFC5 1AE0 0131 78DE B9C8 68FF FB1E C187 88CA";
signByDefault = true;
};

View File

@@ -29,9 +29,12 @@
];
};
};
wayland.windowManager.hyprland.settings.windowrulev2 = [
# For some reason it really wants to be maximized
"suppressevent maximize,class:^(neovide)$"
wayland.windowManager.hyprland.settings.windowrule = [
{
name = "Suppress maximize for neovide";
"match:class" = "^(neovide)$";
suppress_event = "maximize";
}
];
programs.nixvim = {
globals = {

View File

@@ -299,8 +299,11 @@ in
gtk = {
gtk3.extraCss = # css
"@import './theme.css';";
gtk4.extraCss = # css
"@import './theme.css';";
gtk4 = {
theme.name = "Adwaita";
extraCss = # css
"@import './theme.css';";
};
theme = {
name = "Adwaita";
};
@@ -341,7 +344,13 @@ in
wayland.windowManager.hyprland = {
settings = {
windowrulev2 = [ "float,class:^(zenity)$" ];
windowrule = [
{
name = "floating-zenity";
"match:class" = "^(zenity)$";
float = true;
}
];
decoration = {
inactive_opacity = 0.8;
shadow = {

View File

@@ -11,7 +11,6 @@
./fonts/nerd-fonts.nix
./fonts/open-dyslexic.nix
./hardware/hid-fanatecff.nix
./hardware/astro-a50.nix
./hardware/audio.nix
./hardware/gbmonctl.nix
@@ -26,9 +25,10 @@
./locales/theaninova.nix
./usecases/gaming.nix
./usecases/3d-printing.nix
./usecases/development.nix
./usecases/gaming.nix
./usecases/localai.nix
./usecases/windows-vm.nix
./services/airprint.nix

View File

@@ -35,12 +35,6 @@ in
};
input.numlock_by_default = true;
};
plugins = lib.mkIf cfg.scrolling (
with pkgs.hyprlandPlugins;
[
hyprscrolling
]
);
};
home = {
packages = with pkgs; [ grim ];

View File

@@ -57,8 +57,10 @@ in
layout.struts.top = 80;
};
wayland.windowManager.hyprland.settings = {
plugin.hyprscrolling = lib.mkIf config.desktops.hyprland.scrolling {
scrolling = {
column_width = 0.4;
focus_fit_method = 0;
fullscreen_on_one_column = false;
};
master = {
orientation = "center";

View File

@@ -1,60 +0,0 @@
{
lib,
stdenv,
kernel,
fetchFromGitHub,
linuxConsoleTools,
bash,
}:
stdenv.mkDerivation rec {
pname = "hid-fanatecff";
version = "0.2.1";
src = fetchFromGitHub {
owner = "gotzl";
repo = "hid-fanatecff";
rev = version;
hash = "sha256-M2jm8pyxHRiswV4iJEawo57GkJ2XOclIo3NxEFgK+q0=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [
"KVERSION=${kernel.modDirVersion}"
"KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"KBUILD_OUTPUT=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
patchPhase = ''
runHook prePatch
substituteInPlace fanatec.rules \
--replace-fail "/bin/sh" "${bash}/bin/sh"
substituteInPlace fanatec.rules \
--replace-fail "/usr/bin/evdev-joystick" "${linuxConsoleTools}/bin/evdev-joystick"
runHook postPatch
'';
installPhase = ''
runHook preInstall
mkdir -p $out/etc/udev/rules.d
cp fanatec.rules $out/etc/udev/rules.d/99-fanatec.rules
mkdir -p $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/hid
cp hid-fanatec.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/hid
runHook postInstall
'';
meta = with lib; {
description = "Driver to support FANATEC input devices, in particular ForceFeedback of various wheel-bases";
homepage = "https://github.com/gotzl/hid-fanatecff";
license = licenses.gpl2Only;
maintainers = with maintainers; [ theaninova ];
platforms = platforms.linux;
broken = stdenv.isAarch64;
};
}

View File

@@ -1,29 +0,0 @@
{
pkgs,
lib,
config,
...
}:
let
cfg = config.hardware.hid-fanatecff;
kernelPackage = pkgs.callPackage ./hid-fanatecff-pkg.nix {
kernel = config.boot.kernelPackages.kernel;
};
in
{
options.hardware.hid-fanatecff.enable = lib.mkEnableOption "the Linux kernel drivers for Fanatec wheel bases";
config = lib.mkIf cfg.enable {
boot = {
extraModulePackages = [ kernelPackage ];
kernelModules = [ "hid-fanatec" ];
};
services.udev.packages = [ kernelPackage ];
users.groups.games = { };
};
meta = {
maintainers = with lib.maintainers; [ theaninova ];
};
}

View File

@@ -21,9 +21,13 @@ in
bind = [
"SUPER_SHIFT,V,exec,XDG_CURRENT_DESKTOP=sway uwsm app -- flameshot gui --clipboard"
];
windowrulev2 = [
"float,class:^(flameshot)$"
"animation fade,class:^(flameshot)$"
windowrule = [
{
name = "Flameshot";
"match:class" = "^(flameshot)$";
animation = "fade";
float = true;
}
];
};
};

View File

@@ -16,11 +16,15 @@ in
config = lib.mkIf cfg.enable {
home-manager.users.${username} = {
wayland.windowManager.hyprland.settings.windowrulev2 = [
"dimaround,class:^(gcr-prompter)$"
"noborder,class:^(gcr-prompter)$"
"rounding 10,class:^(gcr-prompter)$"
"animation slide,class:^(gcr-prompter)$"
wayland.windowManager.hyprland.settings.windowrule = [
{
name = "Gnome Keyring";
"match:class" = "^(gcr-prompter)$";
border_size = 0;
rounding = 10;
animation = "slide";
dim_around = true;
}
];
home.packages = with pkgs; [
polkit_gnome

View File

@@ -8,7 +8,6 @@
let
cfg = config.shell.components.walker;
hmConfig = config.home-manager.users.${username};
in
{
options.shell.components.walker = {
@@ -29,27 +28,14 @@ in
};
programs.niri.settings.binds."Mod+Space".action.spawn = [ (lib.getExe pkgs.walker) ];
home.packages = with pkgs; [
walker
wl-clipboard
];
xdg.configFile."walker/config.toml".source = (pkgs.formats.toml { }).generate "walker-config.toml" {
app_launch_prefix = "uwsm app -- ";
close_when_open = true;
force_keyboard_focus = true;
};
systemd.user.services.walker = {
Unit = {
Description = "Walker - Application Runner";
X-Restart-Triggers = [
"${hmConfig.xdg.configFile."walker/config.toml".source}"
];
After = [ "graphical-session.target" ];
};
Install.WantedBy = [ "graphical-session.target" ];
Service = {
ExecStart = "${lib.getExe pkgs.walker} --gapplication-service";
Restart = "always";
programs.walker = {
enable = true;
runAsService = true;
config = {
close_when_open = true;
force_keyboard_focus = true;
};
};
};

View File

@@ -0,0 +1,46 @@
{
config,
lib,
username,
...
}:
with lib;
let
cfg = config.usecases.localai;
in
{
options.usecases.localai = {
enable = mkEnableOption "Enable local LLM services";
};
config = mkIf cfg.enable {
services = {
ollama.enable = true;
open-webui = {
enable = true;
port = 57461;
environment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
WEBUI_AUTH = "False";
};
};
};
/*
virtualisation.oci-containers.containers.open-terminal =
let
xdg = config.home-manager.users.${username}.xdg;
in
{
podman.user = "${username}";
image = "ghcr.io/open-webui/open-terminal";
volumes = [ "${xdg.dataHome}/open-terminal:/home/user" ];
ports = [ "54183:8000" ];
extraOptions = [ "--env-file=${xdg.configHome}/open-terminal.env" ];
};
*/
};
}

View File

@@ -3,7 +3,7 @@
stdenv,
fetchFromGitHub,
fetchFromGitLab,
boost,
boost177,
libargs,
cmake,
}:
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [
boost
boost177
libargs
];