Compare commits

...

4 Commits

Author SHA1 Message Date
5d5f98ad90 apply nvidia fix weil diese hurensöhne es nicht schaffen software zu compilen 2026-02-20 13:54:02 +01:00
24df8085f0 update 2026-02-20 13:53:57 +01:00
4665bc0fbb added tower stuff 2026-02-15 12:28:15 +01:00
6522f7ea0b stuff 2026-02-04 18:45:32 +01:00
6 changed files with 195 additions and 34 deletions

121
flake.lock generated Normal file
View File

@@ -0,0 +1,121 @@
{
"nodes": {
"antigravity-nix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1771579114,
"narHash": "sha256-N5h+fh1Ql3amuBa/71yJRxsFC8fJC2STRtjQi4ZHJdM=",
"owner": "jacopone",
"repo": "antigravity-nix",
"rev": "137d0c871219a5f96ab68a4ac1473a8e74d1d9cb",
"type": "github"
},
"original": {
"owner": "jacopone",
"repo": "antigravity-nix",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1770260404,
"narHash": "sha256-3iVX1+7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0d782ee42c86b196acff08acfbf41bb7d13eed5b",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.11",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1771419570,
"narHash": "sha256-bxAlQgre3pcQcaRUm/8A0v/X8d2nhfraWSFqVmMcBcU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6d41bc27aaf7b6a3ba6b169db3bd5d6159cfaa47",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1771207753,
"narHash": "sha256-b9uG8yN50DRQ6A7JdZBfzq718ryYrlmGgqkRm9OOwCE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d1c15b7d5806069da59e819999d70e1cec0760bf",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"antigravity-nix": "antigravity-nix",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -73,6 +73,7 @@
modules = [
./hosts/segfault-tower/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.backupFileExtension = "backup";
home-manager.useGlobalPkgs = true;

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, antigravity-nix, ... }:
{
fonts.fontconfig.enable = true;
@@ -11,13 +11,14 @@
pkgs.element-desktop
pkgs.tidal-hifi
pkgs.solaar
pkgs.tree
pkgs.htop
pkgs.neovim
pkgs.wget
pkgs.unzip
pkgs.open-webui
pkgs.librechat
pkgs.feather
@@ -34,21 +35,27 @@
pkgs.eza
pkgs.bat
pkgs.ripgrep
pkgs.sqlitebrowser
pkgs.seahorse
pkgs.binutils
pkgs.gcc
# pkgs.scenebuilder
pkgs.scenebuilder
pkgs.nil
pkgs.zotero
pkgs.jabref
(pkgs.aspellWithDicts
(dicts: with dicts; [ de en en-computers ]))
(pkgs.aspellWithDicts (
dicts: with dicts; [
de
en
en-computers
]
))
antigravity-nix.packages.x86_64-linux.default
];
}

View File

@@ -1,4 +1,12 @@
{
networking.networkmanager.enable = true;
}
services.resolved = {
enable = true;
dnssec = "false";
fallbackDns = [
"1.1.1.1"
"8.8.8.8"
];
};
}

View File

@@ -14,22 +14,22 @@
Environment = [ "OLLAMA_HOST=0.0.0.0:11434" ];
};
services.open-webui = {
package = pkgs.open-webui;
enable = true;
port = 8081;
environment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
OLLAMA_BASE_URL = "http://127.0.0.1:11434";
WEBUI_AUTH = "False";
FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build";
DATA_DIR = "${config.services.open-webui.stateDir}/data";
STATIC_DIR = "${config.services.open-webui.stateDir}/static";
};
};
# services.open-webui = {
# package = pkgs.open-webui;
# enable = true;
# port = 8081;
# environment = {
# ANONYMIZED_TELEMETRY = "False";
# DO_NOT_TRACK = "True";
# SCARF_NO_ANALYTICS = "True";
# OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
# OLLAMA_BASE_URL = "http://127.0.0.1:11434";
# WEBUI_AUTH = "False";
# FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build";
# DATA_DIR = "${config.services.open-webui.stateDir}/data";
# STATIC_DIR = "${config.services.open-webui.stateDir}/static";
# };
# };
services.searx = {
enable = true;

View File

@@ -1,20 +1,20 @@
{config, pkgs, ...}:
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnfree = true;
services.xserver.videoDrivers = ["nvidia"];
hardware.graphics = {
enable = true;
enable32Bit = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
};
hardware.nvidia = {
hardware.nvidia = {
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
powerManagement.enable = true;
@@ -25,7 +25,31 @@
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
package =
let
base = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "590.48.01";
sha256_64bit = "sha256-ueL4BpN4FDHMh/TNKRCeEz3Oy1ClDWto1LO/LWlr1ok=";
openSha256 = "sha256-hECHfguzwduEfPo5pCDjWE/MjtRDhINVr4b1awFdP44=";
settingsSha256 = "sha256-4SfCWp3swUp+x+4cuIZ7SA5H7/NoizqgPJ6S9fm90fA=";
persistencedSha256 = "";
};
cachyos-nvidia-patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/CachyOS/CachyOS-PKGBUILDS/master/nvidia/nvidia-utils/kernel-6.19.patch";
sha256 = "sha256-YuJjSUXE6jYSuZySYGnWSNG5sfVei7vvxDcHx3K+IN4=";
};
# Patch the appropriate driver based on config.hardware.nvidia.open
driverAttr = if config.hardware.nvidia.open then "open" else "bin";
in
base
// {
${driverAttr} = base.${driverAttr}.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or [ ]) ++ [ cachyos-nvidia-patch ];
});
};
# package = config.boot.kernelPackages.nvidiaPackages.unstable;
};
}